Skip to content
Snippets Groups Projects
Verified Commit 89ba5c82 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

add gitlab ci file to build docker container

parent cceff40e
No related branches found
No related tags found
1 merge request!55Resolve "Merge dashboard and dashboard-backend repos"
stages:
- build-container
variables:
KANIKO_BUILD_IMAGENAME: admin-backend
build-container:
stage: build-container
image:
# We need a shell to provide the registry credentials, so we need to use the
# kaniko debug image (https://github.com/GoogleContainerTools/kaniko#debug-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 --cache=true --context ${CI_PROJECT_DIR}/ --dockerfile ${CI_PROJECT_DIR}/Dockerfile --destination ${CI_REGISTRY_IMAGE}/${KANIKO_BUILD_IMAGENAME}:${CI_COMMIT_REF_NAME}
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