Page MenuHomePhorge

.gitlab-ci.yml
No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None

.gitlab-ci.yml

# This file is part of libkazv.
# SPDX-FileCopyrightText: 2022-2023 tusooa <tusooa@kazv.moe>
# SPDX-License-Identifier: AGPL-3.0-or-later
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when: never
- if: $CI_COMMIT_BRANCH
stages:
- lint
- prepare
- deps
- build
'lint:no-tabs':
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: &build-rules
- changes: &src-chg
- Dockerfile.deps
- '**/*.cpp'
- '**/*.hpp'
- '**/CMakeLists.txt'
- '**/*.in'
- '**/*.qml'
- 'src/js/*.js'
- 'src/js/transformed-libs/*.js'
- 'packaging/**'
- 'icons/**'
'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: *build-rules
'deps:GNU/Linux-amd64-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: *build-rules
'deps:GNU/Linux-amd64-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: *build-rules
'build:GNU/Linux-amd64-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: *build-rules
'build:GNU/Linux-amd64-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: *build-rules

File Metadata

Mime Type
text/plain
Expires
Wed, May 14, 7:10 AM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
105460
Default Alt Text
.gitlab-ci.yml (2 KB)

Event Timeline