mirror of
https://github.com/kasmtech/workspaces-core-images.git
synced 2024-11-26 01:13:08 +01:00
try to link test results to the commit so they can be viewed in the pipeline status
This commit is contained in:
parent
d1a5326ed7
commit
2456368daa
@ -7,6 +7,7 @@ stages:
|
||||
- manifest
|
||||
- readme
|
||||
- test
|
||||
- linktests
|
||||
|
||||
variables:
|
||||
DOCKER_AUTH_CONFIG: ${_DOCKER_AUTH_CONFIG}
|
||||
@ -537,6 +538,47 @@ manifest_dev:
|
||||
- core-oracle-8-private
|
||||
- core-opensuse-15-private
|
||||
|
||||
link_tests_single_arch_dev:
|
||||
stage: linktests
|
||||
image:
|
||||
name: amazon/aws-cli
|
||||
entrypoint: [""]
|
||||
script:
|
||||
- yum install -y curl
|
||||
- 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"
|
||||
parallel:
|
||||
matrix:
|
||||
- KASM_IMAGE:
|
||||
- core-cuda-bionic-private
|
||||
- core-cuda-focal-private
|
||||
- core-remnux-bionic-private
|
||||
- core-remnux-focal-private
|
||||
- core-centos-7-private
|
||||
- core-oracle-7-private
|
||||
|
||||
link_tests_multi_arch_dev:
|
||||
stage: linktests
|
||||
image:
|
||||
name: amazon/aws-cli
|
||||
entrypoint: [""]
|
||||
script:
|
||||
- yum install -y curl
|
||||
- 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"
|
||||
parallel:
|
||||
matrix:
|
||||
- ARCH: [ aarch64, x86_64 ]
|
||||
KASM_IMAGE:
|
||||
- core-ubuntu-bionic-private
|
||||
- core-ubuntu-focal-private
|
||||
- core-nvidia-focal-private
|
||||
- core-kali-rolling-private
|
||||
- core-oracle-8-private
|
||||
- core-opensuse-15-private
|
||||
|
||||
# These jobs are for the "rolling" release of the images. They should only run for scheduled jobs and should only push the rolling tags
|
||||
build_ubuntu_bionic_scheduled:
|
||||
stage: build
|
||||
|
Loading…
Reference in New Issue
Block a user