Merge branch 'feature/KASM-2861-link-guard' into 'develop'

KASM-2861 do not link tests on non development feature branches

Closes KASM-2861

See merge request kasm-technologies/internal/workspaces-core-images!77
This commit is contained in:
Justin Travis 2022-07-13 19:50:16 +00:00
commit b3f606de93

View File

@ -544,6 +544,9 @@ link_tests_single_arch_dev:
- STATUS=$(curl -sL https://kasm-ci.s3.amazonaws.com/${CI_COMMIT_SHA}/x86_64/kasmweb/${KASM_IMAGE}/${SANITIZED_BRANCH}/ci-status.yml | awk -F'"' '{print $2}')
- if [ "${STATUS}" == "PASS" ]; then STATE=success; else STATE=failed; fi;
- curl --request POST --header "PRIVATE-TOKEN:${GITLAB_API_TOKEN}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/statuses/${CI_COMMIT_SHA}?state=${STATE}&name=${KASM_IMAGE}_x86_64&target_url=https://kasm-ci.s3.amazonaws.com/${CI_COMMIT_SHA}/x86_64/kasmweb/${KASM_IMAGE}/${SANITIZED_BRANCH}/index.html"
except:
- develop
- /^release\/.*$/
parallel:
matrix:
- KASM_IMAGE:
@ -560,6 +563,9 @@ link_tests_multi_arch_dev:
- STATUS=$(curl -sL https://kasm-ci.s3.amazonaws.com/${CI_COMMIT_SHA}/${ARCH}/kasmweb/${KASM_IMAGE}/${ARCH}-${SANITIZED_BRANCH}/ci-status.yml | awk -F'"' '{print $2}')
- if [ "${STATUS}" == "PASS" ]; then STATE=success; else STATE=failed; fi;
- curl --request POST --header "PRIVATE-TOKEN:${GITLAB_API_TOKEN}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/statuses/${CI_COMMIT_SHA}?state=${STATE}&name=${KASM_IMAGE}_${ARCH}&target_url=https://kasm-ci.s3.amazonaws.com/${CI_COMMIT_SHA}/${ARCH}/kasmweb/${KASM_IMAGE}/${ARCH}-${SANITIZED_BRANCH}/index.html"
except:
- develop
- /^release\/.*$/
parallel:
matrix:
- ARCH: [ aarch64, x86_64 ]