From aff7b6c72f21badb9ab9881ea87fd5c884d299dd Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Wed, 20 Oct 2021 20:41:04 -0600 Subject: [PATCH] Fix latest image build workflow condition --- .github/workflows/buildx.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/buildx.yml b/.github/workflows/buildx.yml index d135aac..35861ee 100644 --- a/.github/workflows/buildx.yml +++ b/.github/workflows/buildx.yml @@ -14,9 +14,6 @@ jobs: - name: Wait for tests to succeed if: ${{ github.event.workflow_run.conclusion != 'success' }} run: exit 1 - - name: Check trigger event - if: ${{ github.event_name != 'push' }} - run: exit 0 - name: checkout code uses: actions/checkout@v2 - name: install buildx @@ -29,7 +26,7 @@ jobs: echo "${{ secrets.DOCKER_PASSWORD }}" | \ docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin - name: build and push the image - if: startsWith(github.ref, 'refs/heads/main') + if: startsWith(github.ref, 'refs/heads/main') && github.actor == 'benbusby' run: | docker run --rm --privileged multiarch/qemu-user-static --reset -p yes docker buildx ls