Skip to content

Commit 9201a57

Browse files
committed
Feature: Build latest docker image
1 parent 7ec3f4e commit 9201a57

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.gitlab-ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,16 @@ next:
5151
- master
5252
tags:
5353
- docker
54+
55+
latest:
56+
stage: image
57+
image:
58+
name: gcr.io/kaniko-project/executor:debug
59+
entrypoint: [""]
60+
script:
61+
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
62+
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/docker/latest/Dockerfile --destination $CI_REGISTRY_IMAGE:latest
63+
only:
64+
- master
65+
tags:
66+
- docker

docker/latest/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM registry.gitlab.com/ovr/staticscript:node-11-llvm-8
2+
3+
RUN npm -g install static-script

0 commit comments

Comments
 (0)