test: get correct CIV tag in azure.sh
In order to run azure.sh inside CIV CI, we need to use the appropiate tag. This means getting `prod` tag when running in osbuild-composer and the pr tag when running in cloud-image-val
This commit is contained in:
parent
989c64040c
commit
34b1be2bf4
1 changed files with 9 additions and 1 deletions
|
|
@ -196,7 +196,15 @@ export BLOB_URL="https://$AZURE_STORAGE_ACCOUNT.blob.core.windows.net/$AZURE_CON
|
|||
|
||||
greenprint "Pulling cloud-image-val container"
|
||||
|
||||
CONTAINER_CLOUD_IMAGE_VAL="quay.io/cloudexperience/cloud-image-val-test:prod"
|
||||
if [[ "$CI_PROJECT_NAME" =~ "cloud-image-val" ]]; then
|
||||
# If running on CIV, get dev container
|
||||
TAG=${CI_COMMIT_REF_SLUG}
|
||||
else
|
||||
# If not, get prod container
|
||||
TAG="prod"
|
||||
fi
|
||||
|
||||
CONTAINER_CLOUD_IMAGE_VAL="quay.io/cloudexperience/cloud-image-val-test:$TAG"
|
||||
|
||||
sudo ${CONTAINER_RUNTIME} pull ${CONTAINER_CLOUD_IMAGE_VAL}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue