mirror of
https://github.com/kasmtech/workspaces-core-images.git
synced 2024-11-28 18:33:16 +01:00
74 lines
1.6 KiB
YAML
74 lines
1.6 KiB
YAML
############
|
|
# Settings #
|
|
############
|
|
image: docker:24.0.6
|
|
services:
|
|
- docker:24.0.6-dind
|
|
|
|
include:
|
|
- template: Code-Quality.gitlab-ci.yml
|
|
|
|
stages:
|
|
- template
|
|
- run
|
|
- test
|
|
variables:
|
|
KASM_RELEASE: "1.14.0"
|
|
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"
|
|
SCAN_CONTAINERS: "true"
|
|
before_script:
|
|
- export SANITIZED_BRANCH="$(echo $CI_COMMIT_REF_NAME | sed -r 's#^release/##' | sed 's/\//_/g')"
|
|
|
|
#######################
|
|
# 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
|
|
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
|
|
trigger:
|
|
include:
|
|
- artifact: gitlab-ci.yml
|
|
job: template
|