-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhapi.gitlab-ci.yml
More file actions
33 lines (28 loc) · 834 Bytes
/
hapi.gitlab-ci.yml
File metadata and controls
33 lines (28 loc) · 834 Bytes
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
image: 'node'
stages:
- prepare
- build
- deploy
include:
- local: kube.gitlab-ci.yml
prepare tools:
stage: prepare
image: alpine
script:
- apk add --no-cache git
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/instalitre/ci-workflow.git ci-tools
artifacts:
paths:
- ci-tools/
build:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- cat ci-tools/templates/hapi.Dockerfile.tpl > hapi.Dockerfile;
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/hapi.Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
cache:
paths:
- .m2/