Skip to content

Commit 8ea8f20

Browse files
committed
Feature(CI): Build and push next image
1 parent 4976adc commit 8ea8f20

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.gitlab-ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
stages:
33
- tests
4+
- image
45

56
.run_tests_template: &run_tests
67
stage: tests
@@ -37,3 +38,16 @@ node-11-llvm-8:
3738
allow_failure: true
3839
image: registry.gitlab.com/ovr/staticscript:node-11-llvm-8
3940
<<: *run_tests
41+
42+
next:
43+
stage: image
44+
image:
45+
name: gcr.io/kaniko-project/executor:debug
46+
entrypoint: [""]
47+
script:
48+
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
49+
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/docker/next/Dockerfile --destination $CI_REGISTRY_IMAGE:next
50+
only:
51+
- master
52+
tags:
53+
- docker

0 commit comments

Comments
 (0)