2023-07-10 19:31:10 +02:00
|
|
|
############
|
|
|
|
# Settings #
|
|
|
|
############
|
2023-09-15 17:55:52 +02:00
|
|
|
image: docker:24.0.6
|
2021-06-16 15:26:09 +02:00
|
|
|
services:
|
2023-09-15 17:55:52 +02:00
|
|
|
- docker:24.0.6-dind
|
2023-11-24 18:08:40 +01:00
|
|
|
|
|
|
|
include:
|
|
|
|
- template: Code-Quality.gitlab-ci.yml
|
|
|
|
|
2023-07-10 19:31:10 +02:00
|
|
|
stages:
|
2023-09-25 11:41:12 +02:00
|
|
|
- template
|
|
|
|
- run
|
2023-11-24 20:11:42 +01:00
|
|
|
- test
|
2023-07-10 19:31:10 +02:00
|
|
|
variables:
|
2024-04-28 23:49:00 +02:00
|
|
|
DOCKER_AUTH_CONFIG: ${_DOCKER_AUTH_CONFIG}
|
|
|
|
GIT_SUBMODULE_STRATEGY: normal
|
2023-07-10 19:31:10 +02:00
|
|
|
KASM_RELEASE: "1.14.0"
|
2024-01-10 02:11:53 +01:00
|
|
|
TEST_INSTALLER: "https://kasmweb-build-artifacts.s3.amazonaws.com/kasm_backend/1e99090dadb026f1e37e34e53334da20061bc21c/kasm_workspaces_feature_tester-1.15-pre-release_1.15.0.1e9909.tar.gz"
|
2023-11-22 18:13:20 +01:00
|
|
|
SCAN_CONTAINERS: "true"
|
2023-07-10 19:31:10 +02:00
|
|
|
before_script:
|
|
|
|
- export SANITIZED_BRANCH="$(echo $CI_COMMIT_REF_NAME | sed -r 's#^release/##' | sed 's/\//_/g')"
|
2021-06-16 15:26:09 +02:00
|
|
|
|
2023-09-25 11:41:12 +02:00
|
|
|
#######################
|
|
|
|
# Build from template #
|
|
|
|
#######################
|
|
|
|
template:
|
|
|
|
stage: template
|
2022-05-11 18:28:40 +02:00
|
|
|
script:
|
2023-09-25 11:41:12 +02:00
|
|
|
- apk add py3-jinja2 py3-yaml
|
|
|
|
- cd ci-scripts
|
|
|
|
- python3 template-gitlab.py
|
2023-05-10 00:13:15 +02:00
|
|
|
tags:
|
2023-09-15 17:55:52 +02:00
|
|
|
- oci-fixed-amd
|
2023-09-25 11:41:12 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- gitlab-ci.yml
|
|
|
|
pipeline:
|
|
|
|
stage: run
|
2023-10-28 12:06:07 +02:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $README_USERNAME_RUN
|
|
|
|
- $README_PASSWORD_RUN
|
|
|
|
- $DOCKERHUB_REVERT_RUN
|
|
|
|
- $REVERT_IS_ROLLING_RUN
|
|
|
|
trigger:
|
|
|
|
include:
|
|
|
|
- artifact: gitlab-ci.yml
|
|
|
|
job: template
|
|
|
|
pipeline_readme:
|
|
|
|
stage: run
|
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $README_USERNAME_RUN
|
|
|
|
- $README_PASSWORD_RUN
|
|
|
|
variables:
|
|
|
|
README_USERNAME: $README_USERNAME_RUN
|
|
|
|
README_PASSWORD: $README_PASSWORD_RUN
|
|
|
|
trigger:
|
|
|
|
include:
|
|
|
|
- artifact: gitlab-ci.yml
|
|
|
|
job: template
|
|
|
|
pipeline_revert:
|
|
|
|
stage: run
|
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $DOCKERHUB_REVERT_RUN
|
|
|
|
- $REVERT_IS_ROLLING_RUN
|
|
|
|
variables:
|
|
|
|
DOCKERHUB_REVERT: $DOCKERHUB_REVERT_RUN
|
|
|
|
REVERT_IS_ROLLING: $REVERT_IS_ROLLING_RUN
|
2023-09-25 11:41:12 +02:00
|
|
|
trigger:
|
|
|
|
include:
|
|
|
|
- artifact: gitlab-ci.yml
|
|
|
|
job: template
|