github_actions: Push tagged images

This commit is contained in:
Matt McCormick 2021-06-24 10:24:37 -04:00
parent e37ca78f82
commit 8896857839
No known key found for this signature in database
GPG Key ID: 45DA982347954FA5

View File

@ -58,4 +58,6 @@ jobs:
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
run: | run: |
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }} 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}