Skip to content

Commit

Permalink
Update docker-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
XAlinaGS committed Jun 24, 2024
1 parent fb6f736 commit 35fe637
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ jobs:
- name: push Image to Production
id: push-prod
if: github.ref == 'refs/heads/prod'
run: docker tag $IMAGE_NAME mnestix/$IMAGE_NAME:$IMAGE_TAG
docker tag $IMAGE_NAME mnestix/$IMAGE_NAME:$IMAGE_TAG_VERSION
docker push mnestix/$IMAGE_NAME:$IMAGE_TAG
run: docker tag $IMAGE_NAME mnestix/$IMAGE_NAME:$IMAGE_TAG &&
docker tag $IMAGE_NAME mnestix/$IMAGE_NAME:$IMAGE_TAG_VERSION &&
docker push mnestix/$IMAGE_NAME:$IMAGE_TAG &&
docker push mnestix/$IMAGE_NAME:$IMAGE_TAG_VERSION

- name: pugh Image to development
id: push-dev
# 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
docker login -u $AZURE_REGISTRY_USER -p $AZURE_REGISTRY_PASS mnestixcr.azurecr.io
run: docker tag $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 35fe637

Please sign in to comment.