Skip to content
Snippets Groups Projects
Commit d0b4ec51 authored by Tony Chemit's avatar Tony Chemit :grinning:
Browse files

Add .gitlab-ci.yml

parent 0345b637
No related branches found
No related tags found
No related merge requests found
Pipeline #80256 passed
stages:
- build
.create-image: &create-image
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"${CI_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
- export IMAGE_PATH="${CI_PROJECT_DIR}/${CI_JOB_NAME}"
- >-
/kaniko/executor
--context "${IMAGE_PATH}"
--dockerfile "${IMAGE_PATH}/Dockerfile"
--destination "${CI_REGISTRY_IMAGE}/${CI_JOB_NAME}:latest"
base-11:
<<: *create-image
stage: build
only:
- main
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment