Skip to content

Commit

Permalink
added test acr
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaansehgal99 committed Oct 11, 2023
1 parent 6246400 commit 8cef8d4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/e2e-preset-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: E2E Preset Test

on:
workflow_run:
workflows: [Build and Push Preset Models]
workflows: ["Build and Push Preset Models"]
types:
- completed
workflow_dispatch: {}
Expand Down Expand Up @@ -92,6 +92,13 @@ jobs:
run: |
tag=$(cat image_tag.txt)
echo "IMAGE_TAG=$tag" >> $GITHUB_OUTPUT
# Set the ACR based on the tag value
if [[ "$tag" == "latest" ]]; then
echo "ACR_NAME=aimodelsregistry" >> $GITHUB_OUTPUT
else
echo "ACR_NAME=aimodelsregistrytest" >> $GITHUB_OUTPUT
fi
- name: Az CLI login
uses: azure/login@v1
Expand All @@ -105,7 +112,7 @@ jobs:
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
- name: 'Login to ACR'
run: az acr login --name aimodelsregistry
run: az acr login --name ${{ steps.get_image_tag.outputs.ACR_NAME }}

- name: Set up kubectl context
run: |
Expand Down

0 comments on commit 8cef8d4

Please sign in to comment.