diff --git a/.github/workflows/publish_image.yml b/.github/workflows/publish_image.yml index a16f760..a2e64d2 100644 --- a/.github/workflows/publish_image.yml +++ b/.github/workflows/publish_image.yml @@ -1,11 +1,12 @@ name: Publish Docker image on: + # Run manually by clicking a button in the UI + workflow_dispatch: + # Run automatically on new commits to specific branches push: branches: - master - - dev - - dev2 jobs: push_to_docker_hub: @@ -23,9 +24,9 @@ jobs: arch: linux/amd64 steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Log in to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} @@ -38,10 +39,10 @@ jobs: docker_tag=${docker_tag%-master} echo "::set-output name=docker_tag::${docker_tag}" - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 if: matrix.arch != 'linux/amd64' - name: Build and push Docker image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: ${{ github.workspace }}/dockers/${{ matrix.docker_image }}/ push: true