diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index dc7080bf..3ef18ef1 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -2,9 +2,9 @@ name: Publish Docker image on: push: - branches: - - main - - master + # branches: + # - main + # - master tags: - 'v*' workflow_dispatch: @@ -36,6 +36,7 @@ jobs: run: echo "${{ secrets.ACCESS_TOKEN }}" | sudo docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Push image + if: "startsWith(github.ref, 'refs/tags/')" run: | IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME