diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index a8cd3d981d664799a4ed6d312aa17e6bd7531eff..b8ed6e4905faf39c08921c730af15bfe782e6dfd 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -5,8 +5,10 @@ on: push: branches: - 'master' + - 'v202[0-9].[0-9].x' tags: - 'v*' + pull_request: env: REGISTRY: ghcr.io @@ -21,6 +23,7 @@ jobs: uses: actions/checkout@v4 - name: Log in to the Container registry uses: docker/login-action@b4bedf8053341df3b5a9f9e0f2cf4e79e27360c6 + if: ${{ github.repository_owner == 'freifunk-gluon' && github.event_name == 'push' }} with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -34,6 +37,6 @@ jobs: uses: docker/build-push-action@4c1b68d83ad20cc1a09620ca477d5bbbb5fa14d0 with: context: ./contrib/docker - push: true + push: ${{ github.repository_owner == 'freifunk-gluon' && github.event_name == 'push' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}