Commit f31b238e authored by Cecile Cavet's avatar Cecile Cavet
Browse files

Update .gitlab-ci.yml

parent b8f310db
Pipeline #137247 failed with stages
in 1 minute and 12 seconds
......@@ -87,29 +87,29 @@ deploy to staging:
# only:
# - master
#build:
# image: docker:19.03.11
# stage: build
# services:
# - docker:19.03.11-dind
# before_script:
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# script:
# - docker build --pull -t $IMAGE_BUILD_TAG .
# - docker push $IMAGE_BUILD_TAG
build:
image: docker:19.03.11
stage: build
services:
- docker:19.03.11-dind
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build --pull -t $IMAGE_BUILD_TAG .
- docker push $IMAGE_BUILD_TAG
#script:
# - docker build --pull -t ${IMAGE_BUILD_TAG} --build-arg IMAGE_VERSION=${IMAGE_BUILD_TAG} .
# - docker push ${IMAGE_BUILD_TAG}
build:
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
stage: build
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
rules:
- if: $CI_COMMIT_TAG
#build:
# image:
# name: gcr.io/kaniko-project/executor:debug
# entrypoint: [""]
# stage: build
# script:
# - mkdir -p /kaniko/.docker
# - echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json
# - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
# rules:
# - if: $CI_COMMIT_TAG
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment