Skip to content

Commit

Permalink
adjust github docker-build.yml, removed unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pawel-baran-se committed Nov 27, 2024
1 parent 6abfe33 commit 65d25e2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1,115 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ env:
IMAGE_TAG: latest
# Update the version manually
IMAGE_TAG_VERSION: 1.3.0
AD_CLIENT_ID: ${{ secrets.AD_CLIENT_ID }}
AD_TENANT_ID: ${{ secrets.AD_TENANT_ID }}
REGISTRY_USER: ${{ vars.REGISTRY_USER }}
REGISTRY_PASS: ${{ secrets.REGISTRY_PASS }}
AZURE_REGISTRY_PASS: ${{ secrets.AZURE_REGISTRY_PASS }}
AZURE_REGISTRY_USER: ${{ vars.AZURE_REGISTRY_USER }}

jobs:
default:
Expand Down Expand Up @@ -79,6 +75,5 @@ jobs:
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/staging'
env:
BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }}
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
run: docker tag mnestix/$IMAGE_NAME mnestix/$IMAGE_NAME:$BRANCH_NAME &&
docker push mnestix/$IMAGE_NAME:$BRANCH_NAME
Loading

0 comments on commit 65d25e2

Please sign in to comment.