ci: 💚 use Kaniko
This commit is contained in:
parent
d5236c6222
commit
0888ec7266
1 changed files with 7 additions and 7 deletions
|
@ -48,18 +48,18 @@ testCommit:
|
||||||
|
|
||||||
dockerPush:
|
dockerPush:
|
||||||
stage: build
|
stage: build
|
||||||
image: docker:latest
|
image:
|
||||||
services:
|
name: gcr.io/kaniko-project/executor:v1.9.0-debug
|
||||||
- name: docker:dind
|
entrypoint: [""]
|
||||||
alias: docker
|
|
||||||
before_script:
|
before_script:
|
||||||
- cp .config/ci.yml .config/default.yml
|
- cp .config/ci.yml .config/default.yml
|
||||||
- cp .config/docker_ci.env .config/docker.env
|
- cp .config/docker_ci.env .config/docker.env
|
||||||
- docker info
|
- docker info
|
||||||
script:
|
script:
|
||||||
- docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG .
|
- /kaniko/executor
|
||||||
- echo $CI_JOB_TOKEN | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
|
--context "${CI_PROJECT_DIR}"
|
||||||
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
|
||||||
|
--destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}"
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
- beta
|
- beta
|
||||||
|
|
Loading…
Reference in a new issue