Only build image on main branch

This commit is contained in:
Stéphane Bidoul 2021-11-14 14:46:32 +01:00
parent 88e5cb5b44
commit 07615c1fe8
No known key found for this signature in database
GPG key ID: BCAB2555446B5B92

View file

@ -26,6 +26,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: needs:
- test - test
if: ${{ github.repository_owner == 'sbidoul' && github.ref == 'refs/heads/main' }}
steps: steps:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1