Update .gitlab-ci.yml file

This commit is contained in:
Comprofix 2023-12-31 16:08:16 +10:00
parent 18c3be50f1
commit 123541e748

View File

@ -23,22 +23,13 @@ eleventy:
- master
docker_build:
#before_script:
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
#services:
# - docker:dind
stage: docker_build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- 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
#- 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
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG --destination $CI_REGISTRY_IMAGE:latest
only:
- master