run on git commit
Browse files- .gitlab-ci.yml +4 -2
.gitlab-ci.yml
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
build:
|
2 |
stage: build
|
3 |
image:
|
@@ -7,5 +9,5 @@ build:
|
|
7 |
- /kaniko/executor
|
8 |
--context "${CI_PROJECT_DIR}"
|
9 |
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
|
10 |
-
|
11 |
-
|
|
|
1 |
+
image: "python:3.7"
|
2 |
+
|
3 |
build:
|
4 |
stage: build
|
5 |
image:
|
|
|
9 |
- /kaniko/executor
|
10 |
--context "${CI_PROJECT_DIR}"
|
11 |
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
|
12 |
+
rules:
|
13 |
+
- if: $CI_COMMIT_SHA
|