2023-07-11 17:59:02 +02:00
|
|
|
############
|
|
|
|
# Settings #
|
|
|
|
############
|
2023-09-25 12:35:54 +02:00
|
|
|
image: docker:24.0.6
|
2021-06-16 15:41:01 +02:00
|
|
|
services:
|
2023-09-25 12:35:54 +02:00
|
|
|
- docker:24.0.6-dind
|
2021-06-16 15:41:01 +02:00
|
|
|
stages:
|
2023-09-25 12:35:54 +02:00
|
|
|
- template
|
|
|
|
- run
|
2023-07-11 17:59:02 +02:00
|
|
|
variables:
|
|
|
|
BASE_TAG: "develop"
|
|
|
|
USE_PRIVATE_IMAGES: 0
|
|
|
|
KASM_RELEASE: "1.14.0"
|
2023-08-20 16:19:34 +02:00
|
|
|
TEST_INSTALLER: "https://kasm-static-content.s3.amazonaws.com/kasm_release_1.14.0.7f3582.tar.gz"
|
2021-06-16 15:41:01 +02:00
|
|
|
before_script:
|
|
|
|
- export SANITIZED_BRANCH="$(echo $CI_COMMIT_REF_NAME | sed -r 's#^release/##' | sed 's/\//_/g')"
|
|
|
|
|
2023-09-25 12:35:54 +02:00
|
|
|
#######################
|
|
|
|
# Build from template #
|
|
|
|
#######################
|
|
|
|
template:
|
|
|
|
stage: template
|
|
|
|
script:
|
|
|
|
- apk add py3-jinja2 py3-yaml
|
|
|
|
- cd ci-scripts
|
|
|
|
- python3 template-gitlab.py
|
|
|
|
tags:
|
|
|
|
- oci-fixed-amd
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- gitlab-ci.yml
|
|
|
|
pipeline:
|
|
|
|
stage: run
|
2023-10-20 19:52:51 +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 12:35:54 +02:00
|
|
|
trigger:
|
|
|
|
include:
|
|
|
|
- artifact: gitlab-ci.yml
|
|
|
|
job: template
|