Split latest and tagged buildx actions

Reduces redundancy with builds when creating a tag
main
Ben Busby 2021-10-20 12:39:04 -06:00 committed by GitHub
parent 6a229eba5f
commit 1b7d3edd30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +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')
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