Commit e13c2149 authored by Jonathan Klimt's avatar Jonathan Klimt
Browse files

Ported CI to Kaniko&Kubernetes

parent 68e2c59a
Pipeline #373553 failed with stages
in 21 seconds
variables:
DOCKER_TAG_DEV: ${CI_COMMIT_REF_NAME}
DOCKER_IMAGE_DEV: cimpy
DOCKER_FILE: ${CI_PROJECT_DIR}/Dockerfile
stages:
- prepare
......@@ -9,21 +10,24 @@ stages:
- deploy
docker:
stage: prepare
script:
- docker build -t ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV} .
tags:
- shell
- linux
prepare:
variables:
GIT_SUBMODULE_STRATEGY: none
stage: prepare
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [ "" ]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context ${CI_PROJECT_DIR} --dockerfile ${DOCKER_FILE} --target base --destination ${CI_REGISTRY_IMAGE}:${DOCKER_IMAGE_DEV}-base-image --cache=true --snapshotMode=redo --use-new-run
cached-documentation:
stage: generate
script:
- cd documentation && ./docu.sh
image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
tags:
- docker
cache:
key: secret-cimpy
paths:
......@@ -39,8 +43,6 @@ documentation:
artifacts:
paths:
- documentation
tags:
- docker
only:
- master
......@@ -70,8 +72,6 @@ test:import:
- python3 setup.py develop
- cd tests && pytest -v test_import.py
image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
tags:
- docker
test:export-against-imported-files:
stage: test
......@@ -81,8 +81,6 @@ test:export-against-imported-files:
- python3 setup.py develop
- cd tests && pytest -v test_export_with_imported_files.py
image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
tags:
- docker
test:export-against-exported-files:
stage: test
......@@ -92,5 +90,3 @@ test:export-against-exported-files:
- python3 setup.py develop
- cd tests && pytest -v test_export_with_exported_files.py
image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
tags:
- docker
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