This repository has been archived by the owner on Jun 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
53 lines (51 loc) · 2.08 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
docker-build-workflow:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: ["/busybox/sh","-c"]
script:
- |
mkdir -p /kaniko/.docker
echo "{\"auths\":{\"$HARBOR\":{\"username\":\"$HARBOR_USER\",\"password\":\"$HARBOR_PASSWORD\"}}}" > /kaniko/.docker/config.json
/kaniko/executor \
--context="dir://${CI_PROJECT_DIR}" \
--dockerfile="${CI_PROJECT_DIR}/packages/workflow/Dockerfile" \
--destination="${HARBOR}/${CI_PROJECT_PATH}:${CI_COMMIT_TAG:-$CI_COMMIT_REF_NAME}" \
--destination="${HARBOR}/${CI_PROJECT_PATH}:latest" \
--cache=true
rules:
- if: $CI_COMMIT_REF_NAME == 'master' || $CI_COMMIT_TAG
docker-build-webhook:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: ["/busybox/sh","-c"]
script:
- |
mkdir -p /kaniko/.docker
echo "{\"auths\":{\"$HARBOR\":{\"username\":\"$HARBOR_USER\",\"password\":\"$HARBOR_PASSWORD\"}}}" > /kaniko/.docker/config.json
/kaniko/executor \
--context="dir://${CI_PROJECT_DIR}" \
--dockerfile="${CI_PROJECT_DIR}/packages/webhook/Dockerfile" \
--destination="${HARBOR}/${CI_PROJECT_PATH}/webhook:${CI_COMMIT_TAG:-$CI_COMMIT_REF_NAME}" \
--destination="${HARBOR}/${CI_PROJECT_PATH}/webhook:latest" \
--cache=true
rules:
- if: $CI_COMMIT_REF_NAME == 'master' || $CI_COMMIT_TAG
docker-build-degit:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: ["/busybox/sh","-c"]
script:
- |
mkdir -p /kaniko/.docker
echo "{\"auths\":{\"$HARBOR\":{\"username\":\"$HARBOR_USER\",\"password\":\"$HARBOR_PASSWORD\"}}}" > /kaniko/.docker/config.json
/kaniko/executor \
--context="dir://${CI_PROJECT_DIR}" \
--dockerfile="${CI_PROJECT_DIR}/packages/degit/Dockerfile" \
--destination="${HARBOR}/${CI_PROJECT_PATH}/degit:${CI_COMMIT_TAG:-$CI_COMMIT_REF_NAME}" \
--destination="${HARBOR}/${CI_PROJECT_PATH}/degit:latest" \
--cache=true
rules:
- if: $CI_COMMIT_REF_NAME == 'master' || $CI_COMMIT_TAG