Page MenuHomePhorge

.gitlab-ci.yml
No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None

.gitlab-ci.yml

stages:
- lint
- prepare
- deps
- build
lint:
stage: lint
script: |
echo 'Verify that no source file contains tabs'
! egrep -R --exclude-dir=transformed-libs --exclude-dir=Intl.js --exclude-dir=node_modules $'\t' src
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: $CI_PIPELINE_SOURCE == "schedule"
prepare-env:
stage: prepare
script: |
tag="$CI_COMMIT_REF_SLUG"
echo "tag=$tag" >> prepare.env
echo "libkazvTag=servant" >> prepare.env
artifacts:
reports:
dotenv: prepare.env
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
build-deps-debug:
stage: deps
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script: |
mkdir -p /kaniko/.docker
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile.deps --build-arg LIBKAZV_TAG="$libkazvTag" --build-arg JOBS=1 --destination $CI_REGISTRY_IMAGE/deps:$tag --destination $CI_REGISTRY_IMAGE/deps:$tag-debug
dependencies:
- prepare-env
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
build-deps-production:
stage: deps
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script: |
mkdir -p /kaniko/.docker
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile.deps --build-arg LIBKAZV_TAG="$libkazvTag"-prod --build-arg JOBS=1 --destination $CI_REGISTRY_IMAGE/deps:"$tag"-prod
dependencies:
- prepare-env
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
build-debug:
stage: build
image:
name: '$CI_REGISTRY_IMAGE/deps:$CI_COMMIT_REF_SLUG'
script: |
./packaging/GNU-Linux/appimage/build.sh
artifacts:
paths:
- kazv-Debug.AppImage
expire_in: 1 week
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
build-prod:
stage: build
image:
name: '$CI_REGISTRY_IMAGE/deps:$CI_COMMIT_REF_SLUG-prod'
script: |
./packaging/GNU-Linux/appimage/build-prod.sh
artifacts:
paths:
- kazv-Release.AppImage
expire_in: 1 week
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 1, 2:55 PM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41726
Default Alt Text
.gitlab-ci.yml (2 KB)

Event Timeline