-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
65 lines (59 loc) · 1.75 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# SPDX-License-Identifier: AGPL-3.0-only
# SPDX-FileCopyrightText: 2024 Univention GmbH
---
include:
- project: "univention/customers/dataport/upx/common-ci"
ref: "v1.34.0"
file:
- "defaults/nubus-workflow.yaml"
- "defaults/stages.yaml"
- "jobs/lint-commit-messages.yaml"
- "jobs/lint-pre-commit.yaml"
- "jobs/package-and-publish-helm-charts-external.yaml"
- "jobs/semantic-release-env.yaml"
- "jobs/harbor-malware-scan.yaml"
- project: 'univention/dist/renovate-runner'
file: '/templates/renovate.gitlab-ci.yml'
variables:
SKIP_UPDATE_HELM_VALUES: "1"
DEPLOY_NAMESPACE:
description: "The namespace to deploy into."
value: "ci-${CI_COMMIT_REF_SLUG}"
DEPLOY_SUBDOMAIN:
description: "The subdomain to prepend during the deployment."
value: "${CI_COMMIT_REF_SLUG}"
renovate:
stage: "package"
variables:
LOG_LEVEL: debug
RENOVATE_CONFIG_FILE: renovate.yaml
before_script:
- curl -O https://get.helm.sh/helm-v3.14.3-linux-amd64.tar.gz
- sha256sum -c $HELM_SHA256_SUM
- tar -zxvf helm-v3.14.3-linux-amd64.tar.gz
- mv linux-amd64/helm /usr/local/bin/helm
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_TASK == "renovate"'
when: always
- when: never
lint-pre-commit:
before_script:
- helm repo add bitnami "https://charts.bitnami.com/bitnami"
deploy-and-test:
stage: deploy
allow_failure: true
needs:
- job: publish-chart-external
artifacts: false
- job: pre-semantic-release
artifacts: true
trigger:
include:
- local: .gitlab-ci/deploy-and-test.yaml
forward:
pipeline_variables: true
strategy: depend
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- when: manual