-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci-dso.yml
48 lines (42 loc) · 1.06 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
46
47
48
include:
- project: $CATALOG_PATH
file: vault-ci.yml
ref: main
- project: $CATALOG_PATH
file: kaniko-ci.yml
ref: main
default:
image: alpine:latest
variables:
REGISTRY_URL: ${REGISTRY_HOST}/${PROJECT_PATH}
stages:
- read-secret
- docker-build
read_secret:
stage: read-secret
extends:
- .vault:read_secret
build-backend:
variables:
WORKING_DIR: ./server
DOCKERFILE: ./server/Dockerfile
IMAGE_NAMES: ref-app-back:${CI_COMMIT_SHORT_SHA} ref-app-back:${CI_COMMIT_REF_NAME}
stage: docker-build
extends:
- .kaniko:build-push
# Triggers job only if a file in the server directory changed in current commit
# rules:
# - changes:
# - server/**/*
build-frontend:
variables:
WORKING_DIR: ./client
DOCKERFILE: ./client/Dockerfile
IMAGE_NAMES: ref-app-front:${CI_COMMIT_SHORT_SHA} ref-app-front:${CI_COMMIT_REF_NAME}
stage: docker-build
extends:
- .kaniko:build-push
# Triggers job only if a file in the client directory changed in current commit
# rules:
# - changes:
# - client/**/*