We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55106e9 commit 89feed6Copy full SHA for 89feed6
.github/workflows/ci.yml
@@ -37,14 +37,14 @@ jobs:
37
name: Build and push image
38
runs-on: ubuntu-latest
39
needs: [format, lint, type-check]
40
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
41
permissions:
42
contents: read
43
packages: write
44
steps:
45
- uses: actions/checkout@v6
46
47
- name: Log in to GHCR
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
48
uses: docker/login-action@v4
49
with:
50
registry: ghcr.io
@@ -64,6 +64,6 @@ jobs:
64
uses: docker/build-push-action@v7
65
66
context: .
67
- push: true
+ push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
68
tags: ${{ steps.meta.outputs.tags }}
69
labels: ${{ steps.meta.outputs.labels }}
0 commit comments