Merge pull request #501 from dockcross/push-tagged-images

github_actions: Push tagged images
This commit is contained in:
Matt McCormick 2021-06-24 14:27:46 -04:00 committed by GitHub
commit de7b1b0832
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,4 +58,6 @@ jobs:
if: github.ref == 'refs/heads/master'
run: |
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
docker image push dockcross/${{ matrix.arch_name }}
docker image push dockcross/${{ matrix.arch_name }}:latest
tagged_image=$(docker images --filter 'reference=dockcross/${{ matrix.arch_name }}:20*' --format "{{.Repository}}:{{.Tag}}" | head -n1)
docker image push ${tagged_image}