-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
79 lines (72 loc) · 1.82 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# includes from the global ci-templates repository
include:
- project: 'common/ci-templates'
ref: main
file: '/devops/python/test-pipeline.yml'
- project: 'common/ci-templates'
ref: main
file: '/devops/container/build.yml'
# optional - override the default values, if specified
variables:
# Base URL for the image registry
REGISTRY_BASE_URL: registry.risc-software.at/risc_ds/pv-surrogate-eurocast
# specify python working directory (e.g. for mixed repositories)
PYTHON_WORKING_DIRECTORY: "."
# define a specific python version. Will be replaced in a future version by configuring pyenv in pyproject.toml
PYTHON_VERSION: '3.12'
# defined image for python testing - should be able to run all python stuff
PYTHON_IMAGE: ${REGISTRY_BASE_URL}/test
stages:
- provision
- sast
- test
- build
- publish
build-base-image:
stage: provision
needs: []
rules:
- changes:
- poetry.lock
- Dockerfile-base
extends:
- .kaniko-build-image
variables:
IMAGE_NAME: ${REGISTRY_BASE_URL}/base
DOCKERFILE: Dockerfile-base
build-test-image:
stage: provision
needs: []
rules:
- changes:
- poetry.lock
- Dockerfile-test
extends:
- .kaniko-build-image
variables:
IMAGE_NAME: ${REGISTRY_BASE_URL}/test
DOCKERFILE: Dockerfile-test
build-pvgis-downloader-image:
stage: provision
needs: []
rules:
- changes:
- poetry.lock
- Dockerfile-pvgis-downloader
extends:
- .kaniko-build-image
variables:
IMAGE_NAME: ${REGISTRY_BASE_URL}/pvgis-downloader
DOCKERFILE: Dockerfile-pvgis-downloader
build-cuda-image:
stage: provision
needs: []
rules:
- changes:
- poetry.lock
- Dockerfile-cuda
extends:
- .kaniko-build-image
variables:
IMAGE_NAME: ${REGISTRY_BASE_URL}/cuda
DOCKERFILE: Dockerfile-cuda