fix issue with pushing docker images to ghcr

This commit is contained in:
Abigail G 2021-03-06 23:55:38 -05:00
parent 86ab415619
commit be6c78f4de
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5
1 changed files with 3 additions and 1 deletions

View File

@ -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