Skip to content

Commit 3685308

Browse files
committed
chore(ci): limit container job to master branch pushes
1 parent f0e91c5 commit 3685308

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/python-app.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jobs:
104104
container:
105105
needs: coverage
106106
runs-on: ubuntu-latest
107+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
107108

108109
permissions:
109110
contents: read
@@ -128,7 +129,10 @@ jobs:
128129
with:
129130
context: .
130131
push: true
132+
platforms: linux/amd64
133+
provenance: false
134+
cache-from: type=gha
135+
cache-to: type=gha,mode=max
131136
tags: |
132137
ghcr.io/${{ github.repository }}:latest
133-
ghcr.io/${{ github.repository }}:main
134138
ghcr.io/${{ github.repository }}:sha-${{ github.sha }}

0 commit comments

Comments
 (0)