-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GHA workflow to push docker images to registry
- Loading branch information
1 parent
0d3f029
commit a219bb0
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: "Push images to Docker Hub" | ||
# on: workflow_dispatch | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- "dev/push-images-to-registry" | ||
jobs: | ||
build: | ||
name: "Builds images and push them to Docker Hub" | ||
runs-on: "ubuntu-22.04" | ||
steps: | ||
- name: "Check out repository" | ||
uses: "actions/checkout@v4" | ||
- name: "Set up buildx" | ||
uses: "docker/setup-buildx-action@v3" | ||
- name: "Login to Docker Hub" | ||
uses: docker/login-action@v3 | ||
with: | ||
username: artefactual | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
- name: "Build and Push Storage Service" | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: true | ||
load: true | ||
file: ./Dockerfile | ||
target: "archivematica-storage-service" | ||
tags: artefactual/archivematica-storage-service:latest |