From 368530822a8a5886b29387dc2776a2e4964e4aef Mon Sep 17 00:00:00 2001 From: Nano Taboada Date: Sat, 10 May 2025 10:42:58 -0300 Subject: [PATCH] chore(ci): limit container job to master branch pushes --- .github/workflows/python-app.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 8d18b4a..976c3de 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -104,6 +104,7 @@ jobs: container: needs: coverage runs-on: ubuntu-latest + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} permissions: contents: read @@ -128,7 +129,10 @@ jobs: with: context: . push: true + platforms: linux/amd64 + provenance: false + cache-from: type=gha + cache-to: type=gha,mode=max tags: | ghcr.io/${{ github.repository }}:latest - ghcr.io/${{ github.repository }}:main ghcr.io/${{ github.repository }}:sha-${{ github.sha }}