mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2026-01-23 02:25:24 +00:00
95 lines
1.9 KiB
YAML
95 lines
1.9 KiB
YAML
############
|
|
# Settings #
|
|
############
|
|
image: docker:28.2.2
|
|
services:
|
|
- docker:28.2.2-dind
|
|
stages:
|
|
- template
|
|
- run
|
|
default:
|
|
retry: 2
|
|
variables:
|
|
BASE_TAG: "1.17.0-rolling-daily"
|
|
USE_PRIVATE_IMAGES: 0
|
|
KASM_RELEASE: "1.17.0"
|
|
TEST_INSTALLER: "https://kasm-static-content.s3.amazonaws.com/kasm_release_1.17.0.bbc15c.tar.gz"
|
|
MIRROR_ORG_NAME: "kasmtech"
|
|
before_script:
|
|
- export SANITIZED_BRANCH="$(echo $CI_COMMIT_REF_NAME | sed -r 's#^release/##' | sed 's/\//_/g')"
|
|
|
|
#######################
|
|
# Build from template #
|
|
#######################
|
|
template:
|
|
stage: template
|
|
rules:
|
|
- when: always
|
|
script:
|
|
- apk add py3-jinja2 py3-yaml
|
|
- cd ci-scripts
|
|
- python3 template-gitlab.py
|
|
tags:
|
|
- oci-amd-scheduled
|
|
artifacts:
|
|
paths:
|
|
- gitlab-ci.yml
|
|
|
|
pipeline:
|
|
stage: run
|
|
rules:
|
|
- if: >
|
|
$README_USERNAME ||
|
|
$README_PASSWORD ||
|
|
$QUAY_API_KEY ||
|
|
$DOCKERHUB_REVERT ||
|
|
$REVERT_IS_ROLLING
|
|
when: never
|
|
- when: on_success
|
|
variables:
|
|
PARENT_PIPELINE_SOURCE: "$CI_PIPELINE_SOURCE"
|
|
RUN_SET: "$RUN_SET"
|
|
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_readme_quay:
|
|
stage: run
|
|
only:
|
|
variables:
|
|
- $QUAY_API_KEY_RUN
|
|
variables:
|
|
QUAY_API_KEY: $QUAY_API_KEY_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
|