Verified Commit 5096062e authored by Sang Le's avatar Sang Le

Just use origin docker atm

parent 98f29840
Pipeline #206976 passed with stage
in 3 minutes and 54 seconds
......@@ -2,19 +2,22 @@ stages:
- package
package:docker:
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
image: docker:stable
stage: package
variables:
DOCKER_TLS_CERTDIR: ""
DOCKER_DRIVER: overlay2
TAG_NAME: $CI_PIPELINE_ID
services:
- docker:stable-dind
script:
- |
if [[ -n "$CI_REGISTRY_USER" ]]; then
echo "Logging to GitLab Container Registry with CI credentials..."
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
echo $CI_REGISTRY_PASSWORD | docker login -u "$CI_REGISTRY_USER" "$CI_REGISTRY" --password-stdin
fi
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$TAG_NAME
- docker build --pull -t $CI_REGISTRY_IMAGE:$TAG_NAME . --pull
- docker push $CI_REGISTRY_IMAGE:$TAG_NAME
only: ["master", "/^hotfix-.*$/"]
except:
- "tags"
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