Fix latest image build workflow condition

main
Ben Busby 2021-10-20 20:41:04 -06:00
parent 284a8102c8
commit aff7b6c72f
No known key found for this signature in database
GPG Key ID: 339B7B7EB5333D14
1 changed files with 1 additions and 4 deletions

View File

@ -14,9 +14,6 @@ jobs:
- name: Wait for tests to succeed - name: Wait for tests to succeed
if: ${{ github.event.workflow_run.conclusion != 'success' }} if: ${{ github.event.workflow_run.conclusion != 'success' }}
run: exit 1 run: exit 1
- name: Check trigger event
if: ${{ github.event_name != 'push' }}
run: exit 0
- name: checkout code - name: checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: install buildx - name: install buildx
@ -29,7 +26,7 @@ jobs:
echo "${{ secrets.DOCKER_PASSWORD }}" | \ echo "${{ secrets.DOCKER_PASSWORD }}" | \
docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: build and push the image - name: build and push the image
if: startsWith(github.ref, 'refs/heads/main') if: startsWith(github.ref, 'refs/heads/main') && github.actor == 'benbusby'
run: | run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx ls docker buildx ls