-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
41 lines (36 loc) · 1.1 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
41 lines (36 loc) · 1.1 KB
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
variables:
R_IMAGE: index.docker.io/simonlenau/containr:4.6.0
PYTHON_IMAGE: python:3.12
DROPBEAR_VERSION: 2026.91 #2025.88
stages:
- container-build
- container-forward
include:
- local: '.gitlab-ci/templates/build-container.yaml'
- local: '.gitlab-ci/templates/copy-container.yaml'
build-container:
extends: .build-container
parallel:
matrix:
# Build R image
- FROM_IMAGE: "${R_IMAGE}"
install_dependencies: "ubuntu R"
# Build python image
- FROM_IMAGE: "${PYTHON_IMAGE}"
install_dependencies: "ubuntu python"
forward-container-main:
extends: .copy-container
parallel:
matrix:
# Forward to gitlab registry (without the /<branch>/ part)
- TO_PATH: "${CI_REGISTRY_IMAGE}/"
FROM_IMAGE: [ "${PYTHON_IMAGE}", "${R_IMAGE}" ]
OUTPUT_VERSION: [ "", "latest" ]
# Forward container to dockerhub registry
- TO_PATH: "index.docker.io/simonlenau/dev-container:"
FROM_IMAGE: [ "${PYTHON_IMAGE}", "${R_IMAGE}" ]
OUTPUT_VERSION: [ "", "latest" ]
needs:
- build-container
rules:
- if: $CI_COMMIT_BRANCH == "main"