Skip to content

Commit 80a86bf

Browse files
authored
Create .gitlab-ci.yml
1 parent 1148226 commit 80a86bf

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.gitlab-ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# You can override the included template(s) by including variable overrides
2+
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
3+
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
4+
# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
5+
# Container Scanning customization: https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings
6+
# Note that environment variables can be set in several places
7+
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
8+
9+
stages:
10+
- publish
11+
12+
13+
docker-nightly:
14+
stage: publish
15+
image:
16+
name: gcr.io/kaniko-project/executor:v1.9.0-debug
17+
entrypoint:
18+
- ''
19+
script:
20+
- /kaniko/executor --context "${CI_PROJECT_DIR}" --dockerfile "${CI_PROJECT_DIR}/Dockerfile"
21+
--destination "${CI_REGISTRY_IMAGE}:nightly" --build-arg GIT_TAG=nightly
22+
rules:
23+
- if: $CI_COMMIT_BRANCH == "phoenix-integration"
24+
25+
26+
docker-prod:
27+
stage: publish
28+
image:
29+
name: gcr.io/kaniko-project/executor:v1.9.0-debug
30+
entrypoint:
31+
- ''
32+
script:
33+
- /kaniko/executor --context "${CI_PROJECT_DIR}" --dockerfile "${CI_PROJECT_DIR}/Dockerfile"
34+
--destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}" --build-arg GIT_TAG=${CI_COMMIT_TAG}
35+
rules:
36+
- if: $CI_COMMIT_TAG

0 commit comments

Comments
 (0)