Skip to content

Commit

Permalink
MNES-1021 fix azure image upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Alina Geesen-Stucky committed Jun 24, 2024
1 parent ae19815 commit 0d16d6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:

- name: Push Image to Production
id: push-prod
#if: github.ref == 'refs/heads/prod'
if: github.ref == 'refs/heads/prod'
run: docker tag mnestix/$IMAGE_NAME mnestix/$IMAGE_NAME:$IMAGE_TAG &&
docker tag mnestix/$IMAGE_NAME mnestix/$IMAGE_NAME:$IMAGE_TAG_VERSION &&
docker push mnestix/$IMAGE_NAME:$IMAGE_TAG &&
Expand All @@ -77,7 +77,7 @@ jobs:
#if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/staging'
env:
BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }}
run: docker tag $IMAGE_NAME mnestixcr.azurecr.io/$IMAGE_NAME:$BRANCH_NAME &&
run: docker tag mnestix/$IMAGE_NAME mnestixcr.azurecr.io/$IMAGE_NAME:$BRANCH_NAME &&
docker login -u $AZURE_REGISTRY_USER -p $AZURE_REGISTRY_PASS mnestixcr.azurecr.io &&
docker push mnestixcr.azurecr.io/$IMAGE_NAME:$BRANCH_NAME

0 comments on commit 0d16d6d

Please sign in to comment.