forked from jangrewe/ChitUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
37 lines (34 loc) · 813 Bytes
/
.gitlab-ci.yml
File metadata and controls
37 lines (34 loc) · 813 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
34
35
36
37
stages:
- build
- push
build:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
only:
- master
script:
- /kaniko/executor
--cache=true
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "dcr.faked.org/chitui:${CI_COMMIT_SHORT_SHA}"
push_latest:
stage: push
image:
name: gcr.io/go-containerregistry/crane:debug
entrypoint: [""]
only:
- master
script:
- crane copy dcr.faked.org/chitui:${CI_COMMIT_SHORT_SHA} dcr.faked.org/chitui:latest
push_tag:
stage: push
image:
name: gcr.io/go-containerregistry/crane:debug
entrypoint: [""]
only:
- tags
script:
- crane copy dcr.faked.org/chitui:${CI_COMMIT_SHORT_SHA} dcr.faked.org/chitui:${CI_COMMIT_TAG}