From f3d67d835a904ed1cf13a114eca6d71d15135ee1 Mon Sep 17 00:00:00 2001 From: Denis Smet Date: Mon, 11 Mar 2024 15:44:39 +0400 Subject: [PATCH] Refactor docker workflow for better compatibility - Change workflow name to "Publish Docker" - Add support for pull requests in release process - Update docker actions to use latest versions and add QEMU setup --- .github/workflows/release-docker.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-docker.yml b/.github/workflows/release-docker.yml index 47ed32ce..6a64689a 100644 --- a/.github/workflows/release-docker.yml +++ b/.github/workflows/release-docker.yml @@ -10,7 +10,7 @@ # @see https://github.com/JBZoo/Csv-Blueprint # -name: Publish Docker Image +name: Publish Docker on: release: @@ -18,19 +18,28 @@ on: push: branches: - 'master' + pull_request: + branches: + - "*" jobs: docker: runs-on: ubuntu-latest steps: - - name: Login to DockerHub - uses: docker/login-action@v2 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - + - name: Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: push: true tags: jbzoo/csv-blueprint:${{ env.GITHUB_REF_NAME }}