-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
55 lines (50 loc) · 1.54 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
# SPDX-License-Identifier: AGPL-3.0-only
# SPDX-FileCopyrightText: 2023 Univention GmbH
---
include:
- project: "univention/customers/dataport/upx/common-ci"
ref: "v1.18.0"
file:
- "defaults/stages.yaml"
- "defaults/souvap-workflow.yaml"
- "jobs/lint-pre-commit.yaml"
- "jobs/lint-commit-messages.yaml"
- "jobs/semantic-release-env.yaml"
- "jobs/container-build-souvap.yaml"
- "jobs/package-and-publish-helm-charts-souvap.yaml"
- "jobs/check-debian-updates.yaml"
variables:
SOUVAP_HELM_PROJECT_ID: 129
IMAGE_NAME: "dovecot-connector"
download-python-doveadm:
image: ${DOCKERHUB_CACHE}library/alpine:3.16.2
stage: prepare
interruptible: true
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: "never"
- when: "on_success"
before_script:
- echo "Explicitly skip the default action docker login"
script:
- |
apk add --no-cache py3-dotenv~=0.19 py3-requests~=2.27
apk list
echo "GLDL_API_BASE_URL ${GLDL_API_BASE_URL}"
echo "GLDL_DL_PATH ${GLDL_DL_PATH}"
echo "GLDL_PROJECT_ID ${GLDL_PROJECT_ID}"
echo "GLDL_JOB_NAME ${GLDL_JOB_NAME}"
python3 get-artifact.py
artifacts:
paths:
- python-doveadm.zip
expire_in: 1 week
container-build:
variables:
KANIKO_BUILD_CONTEXT: "$CI_PROJECT_DIR"
DOCKERFILE_PATH: "docker/dovecot-connector/Dockerfile.souvap"
KANIKO_ARGS: "--build-arg version=${SEMANTIC_VERSION}"
check-debian-updates:
variables:
TARGET_IMAGE: "${CI_REGISTRY_IMAGE}/${IMAGE_NAME}:latest"
...