Fix latest image build workflow condition
parent
284a8102c8
commit
aff7b6c72f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue