From 8896857839ff79085dd19070ef3a1ae080faf5d9 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Thu, 24 Jun 2021 10:24:37 -0400 Subject: [PATCH] github_actions: Push tagged images --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f5615fc..dedd23b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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}