Merge pull request #341 from CentOS/tf_ref_from_snapshot

ci: override the GIT_URL & GIT_REF from SNAPSHOT
This commit is contained in:
Wei Shi 2024-02-21 12:24:08 +08:00 committed by GitHub
commit 24b1308989
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,11 @@ spec:
export TESTING_FARM_API_TOKEN=$(cat /etc/secrets/testing-farm-token)
apk add jq
GIT_URL=$(echo "${SNAPSHOT}" | jq -r '.components[0].source.git.url')
GIT_REF=$(echo "${SNAPSHOT}" | jq -r '.components[0].source.git.revision')
testing-farm request \
--environment SNAPSHOT="$(echo ${SNAPSHOT} | base64 -w 0)" \
--git-url "${GIT_URL}" \