Skip to content
Snippets Groups Projects
Verified Commit 74d9e6ac authored by Varac's avatar Varac
Browse files

Use shared kaniko build template

Closes: #10
parent a95583ef
No related branches found
No related tags found
1 merge request!6Resolve "Use shared kaniko build template"
include:
- remote: https://open.greenhost.net/openappstack/openappstack/raw/master/.gitlab/ci_templates/kaniko.yml
stages: stages:
- build - build
- build-test-images - build-test-images
- application-test - application-test
consent-provider: consent_provider:
stage: build stage: build
image: variables:
name: gcr.io/kaniko-project/executor:debug KANIKO_CONTEXT: "consent_provider"
entrypoint: [""] KANIKO_BUILD_IMAGENAME: $CI_JOB_NAME
script: extends: .kaniko_build
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context ${CI_PROJECT_DIR}/consent_provider --dockerfile ${CI_PROJECT_DIR}/consent_provider/Dockerfile --destination $CI_REGISTRY_IMAGE/consent_provider:${CI_COMMIT_REF_NAME}
only: only:
changes: changes:
- consent_provider/**/* - consent_provider/**/*
- .gitlab-ci.yml - .gitlab-ci.yml
login-provider: login_provider:
stage: build stage: build
image: variables:
name: gcr.io/kaniko-project/executor:debug KANIKO_CONTEXT: "login_provider"
entrypoint: [""] KANIKO_BUILD_IMAGENAME: $CI_JOB_NAME
script: extends: .kaniko_build
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context ${CI_PROJECT_DIR}/login_provider --dockerfile ${CI_PROJECT_DIR}/login_provider/Dockerfile --destination $CI_REGISTRY_IMAGE/login_provider:${CI_COMMIT_REF_NAME}
only: only:
changes: changes:
- login_provider/**/* - login_provider/**/*
- .gitlab-ci.yml - .gitlab-ci.yml
login-provider-mock: login_provider_mock:
stage: build-test-images stage: build-test-images
image: variables:
name: gcr.io/kaniko-project/executor:debug KANIKO_CONTEXT: "login_provider"
entrypoint: [""] KANIKO_BUILD_IMAGENAME: $CI_JOB_NAME
script: extends: .kaniko_build
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context ${CI_PROJECT_DIR}/login_provider/test/behave --dockerfile ${CI_PROJECT_DIR}/login_provider/test/behave/Dockerfile --destination $CI_REGISTRY_IMAGE/login_provider_mock:${CI_COMMIT_REF_NAME} --build-arg baseimage=$CI_REGISTRY_IMAGE/login_provider:${CI_COMMIT_REF_NAME}
only: only:
changes: changes:
- login_provider/**/* - login_provider/**/*
- .gitlab-ci.yml - .gitlab-ci.yml
login-provider-test: login_provider_test:
stage: build-test-images stage: build-test-images
image: variables:
name: gcr.io/kaniko-project/executor:debug KANIKO_CONTEXT: "login_provider"
entrypoint: [""] KANIKO_BUILD_IMAGENAME: $CI_JOB_NAME
script: extends: .kaniko_build
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context ${CI_PROJECT_DIR}/login_provider/test --dockerfile ${CI_PROJECT_DIR}/login_provider/test/Dockerfile --destination $CI_REGISTRY_IMAGE/login_provider_ci_test:${CI_COMMIT_REF_NAME}
only: only:
changes: changes:
- login_provider/**/* - login_provider/**/*
......
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