Update .gitlab-ci.yml file
This commit is contained in:
parent
18c3be50f1
commit
123541e748
@ -23,22 +23,13 @@ eleventy:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
docker_build:
|
docker_build:
|
||||||
#before_script:
|
|
||||||
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
|
||||||
#services:
|
|
||||||
# - docker:dind
|
|
||||||
stage: docker_build
|
stage: docker_build
|
||||||
image:
|
image:
|
||||||
name: gcr.io/kaniko-project/executor:debug
|
name: gcr.io/kaniko-project/executor:debug
|
||||||
entrypoint: [""]
|
entrypoint: [""]
|
||||||
script:
|
script:
|
||||||
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
||||||
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
|
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG --destination $CI_REGISTRY_IMAGE:latest
|
||||||
#- docker build --no-cache --pull -t $IMAGE_TAG .
|
|
||||||
#- docker push $IMAGE_TAG
|
|
||||||
#- docker tag $IMAGE_TAG $IMAGE_TAG_LATEST
|
|
||||||
#- docker push $IMAGE_TAG_LATEST
|
|
||||||
#- docker rmi $IMAGE_TAG $IMAGE_TAG_LATEST
|
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user