Skip to content

Commit

Permalink
Azure: Add CI steps to update azure image id tag
Browse files Browse the repository at this point in the history
Fixes: #1491
Signed-off-by: Kartik Joshi <kartikjoshi@microsoft.com>
  • Loading branch information
kartikjoshi21 committed Nov 23, 2023
1 parent c936d17 commit 7df64cd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/azure-podvm-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,17 @@ jobs:
echo "successfully built $IMAGE_ID"
echo "image-id=${IMAGE_ID}" >> "$GITHUB_OUTPUT"
- name: Update image tag
id: update-image-tag
run: |
git config --global user.name 'karikjoshi21'
git config --global user.email 'kartikjoshi@microsoft.com'
git checkout podvm-image-id
echo "${IMAGE_ID}" > azure-podvm-image-id.txt
git add azure-podvm-image-id.txt
git commit -m "Update Azure image id tag"
git push origin podvm-image-id
- name: Cleanup intermediate image
if: always()
run: |
Expand Down

0 comments on commit 7df64cd

Please sign in to comment.