-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
39 lines (35 loc) · 1.1 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
image: debian:bullseye
stages:
- build_and_publish
.install_tools: &install_tools |
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get --yes install docker.io
docker_image_dockerhub:
stage: build_and_publish
variables:
branch: "development"
script:
- *install_tools
- export REGISTRY="docker.io"
- export REGISTRY_PATH="/uibmz"
- export REGISTRY_USERNAME="uibmz"
- export REGISTRY_PASSWORD="${DOCKER_HUB_ACCESS_TOKEN}"
- export OPSI_VERSION="4.3"
- export OPSI_BRANCH=$branch
- '[ "$OPSI_BRANCH" = "stable" ] && export ADDITIONAL_TAGS="4.3"'
- ./opsi-server/opsi-server.sh build --no-cache
- ./opsi-server/opsi-server.sh publish
docker_image_internal:
variables:
branch: "development"
stage: build_and_publish
script:
- *install_tools
- export REGISTRY="docker.uib.gmbh"
- export REGISTRY_PATH="/opsi"
- export OPSI_VERSION="4.3"
- export OPSI_BRANCH=$branch
- '[ "$OPSI_BRANCH" = "stable" ] && export ADDITIONAL_TAGS="4.3"'
- ./opsi-server/opsi-server.sh build --no-cache
- ./opsi-server/opsi-server.sh publish