diff --git a/.github/workflows/dockerrelease.yml b/.github/workflows/dockerrelease.yml index 0d4f14f..facc53f 100644 --- a/.github/workflows/dockerrelease.yml +++ b/.github/workflows/dockerrelease.yml @@ -9,7 +9,8 @@ on: permissions: {} jobs: - build: + release: + if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - name: Set REPOSITORY @@ -31,7 +32,6 @@ jobs: type=semver,pattern={{major}} type=sha - uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0 - if: github.event_name != 'pull_request' with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }}