From a219bb0233f620d7ac32c3f2e807e6065714b996 Mon Sep 17 00:00:00 2001 From: Daniel Cosme Date: Mon, 18 Mar 2024 11:19:19 -0400 Subject: [PATCH] Add GHA workflow to push docker images to registry --- .github/workflows/push-images.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/push-images.yml diff --git a/.github/workflows/push-images.yml b/.github/workflows/push-images.yml new file mode 100644 index 000000000..16ecbcad2 --- /dev/null +++ b/.github/workflows/push-images.yml @@ -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 \ No newline at end of file