diff --git a/.github/workflows/ci-site.yml b/.github/workflows/ci-site.yml index 70aa0408..9a973111 100644 --- a/.github/workflows/ci-site.yml +++ b/.github/workflows/ci-site.yml @@ -32,7 +32,7 @@ jobs: - name: available platforms run: echo ${{ steps.buildx.outputs.platforms }} - - name: build and deploy master image to ghcr.io and dockerhub + - name: build and deploy master image to ghcr.io if: ${{ github.ref == 'refs/heads/master' }} env: GITHUB_PACKAGE_TOKEN: ${{ secrets.PKG_TOKEN }} @@ -47,7 +47,7 @@ jobs: docker buildx build --push --no-cache --platform linux/amd64,linux/arm/v7,linux/arm64 \ -t ghcr.io/umputun/remark42-site:${ref} . - - name: deploy tagged (latest) to ghcr.io and dockerhub + - name: deploy tagged (latest) to ghcr.io if: ${{ startsWith(github.ref, 'refs/tags/') }} env: GITHUB_PACKAGE_TOKEN: ${{ secrets.PKG_TOKEN }}