Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,18 @@ jobs:

- name: Publish Image
id: publish_image
run:
run: |
case "${GITHUB_REF}" in
*tags*)
echo "tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT ;
./scripts/cipublish --acr pccomponents --tag $tag
tag=${GITHUB_REF/refs\/tags\//}
echo "tag=${tag}" >> $GITHUB_OUTPUT
./scripts/cipublish --acr pccomponents --tag ${tag}
;;
*)
echo "Publishing to pccomponentstest as latest" ;
echo "tag=latest" >> $GITHUB_OUTPUT ;
./scripts/cipublish --acr pccomponentstest --tag latest ;
echo "Also publishing to pccomponents ACR with unique tag" ;
echo "Publishing to pccomponentstest as latest"
echo "tag=latest" >> $GITHUB_OUTPUT
./scripts/cipublish --acr pccomponentstest --tag latest
echo "Also publishing to pccomponents ACR with unique tag"
./scripts/cipublish --acr pccomponents --tag ${{ steps.most-recent-tag.outputs.tag }}.${{ github.run_number }}
;;
esac
Expand Down