try docker build on gitlab

require docker in gitlab
use kaniko to build docker in gitlab
This commit is contained in:
Wing Lian
2023-05-07 03:10:14 -04:00
parent 2634689774
commit 6603b3744e

11
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,11 @@
build:
stage: build
image:
name: gcr.io/kaniko-project/executor:v1.9.0-debug
entrypoint: [""]
script:
- /kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
# rules:
# - if: $CI_COMMIT_TAG