From be6c78f4deb98780c4b39f44241a15e13d39067a Mon Sep 17 00:00:00 2001 From: Abigail G Date: Sat, 6 Mar 2021 23:55:38 -0500 Subject: [PATCH] fix issue with pushing docker images to ghcr --- .github/workflows/docker.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 6ee0915..53ff245 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -57,7 +57,9 @@ jobs: [[ "$VERSION" != "dev" ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest || true - name: Push images to registry - run: docker push ${{ steps.tag_image.outputs.image_id }} + run: | + [[ "${{ steps.tag_image.outputs.version }}" != "dev" ]] && docker push ${{ steps.tag_image.outputs.image_id }}:latest || true + docker push ${{ steps.tag_image.outputs.image_id }}:${{ steps.tag_image.outputs.version }} - name: Deploy official images id: deploy_images