-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci-dso.yml
45 lines (39 loc) · 1.28 KB
/
.gitlab-ci-dso.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
include:
- project: $CATALOG_PATH
file: vault-ci.yml
ref: main
- project: $CATALOG_PATH
file: kaniko-ci.yml
ref: main
default:
image: alpine:latest
variables:
TAG: "${CI_COMMIT_REF_SLUG}"
REGISTRY_URL: "${REGISTRY_HOST}/${PROJECT_PATH}"
stages:
- read-secret
- docker-build
read_secret:
stage: read-secret
extends:
- .vault:read_secret
docker-build-frontend:
variables:
WORKING_DIR: "frontend"
IMAGE_NAMES: basegun-frontend:${CI_COMMIT_REF_SLUG} basegun-frontend:${CI_COMMIT_SHORT_SHA} basegun-frontend:${CI_COMMIT_TAG}
DOCKERFILE: "frontend/Dockerfile"
BUILD_ARGS: --build-arg=VERSION=1.1.1
EXTRA_BUILD_ARGS: --registry-mirror=registry.dso.interieur.rie.gouv.fr/dockerhub --registry-mirror=nexus.forge-dc.cloudmi.minint.fr
stage: docker-build
extends:
- .kaniko:build-push
docker-build-backend:
variables:
WORKING_DIR: "backend"
IMAGE_NAMES: basegun-backend:${CI_COMMIT_REF_SLUG} basegun-backend:${CI_COMMIT_SHORT_SHA} basegun-backend:${CI_COMMIT_TAG}
DOCKERFILE: "backend/Dockerfile"
BUILD_ARGS: --build-arg=VERSION=1.1.1
EXTRA_BUILD_ARGS: --registry-mirror=registry.dso.interieur.rie.gouv.fr/dockerhub --registry-mirror=nexus.forge-dc.cloudmi.minint.fr
stage: docker-build
extends:
- .kaniko:build-push