Commit c6b306a6 authored by Sandro Mathys's avatar Sandro Mathys
Browse files

pull base image through GitLab dependency proxy

parent a8340f8a
......@@ -35,9 +35,7 @@ build:
except:
- tags
script:
# TODO: Sadly the GitLab Dependency Proxy is not currently compatible with Kaniko - should be fixed in GitLab 13.10+
# - /kaniko/executor --context "${CI_PROJECT_DIR}" --build-arg CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX="${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}" --no-push
- /kaniko/executor --context "${CI_PROJECT_DIR}" --no-push
- /kaniko/executor --context "${CI_PROJECT_DIR}" --build-arg CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX="${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}" --no-push
push:
stage: kaniko
......@@ -46,9 +44,7 @@ push:
only:
- tags
script:
# TODO: Sadly the GitLab Dependency Proxy is not currently compatible with Kaniko - should be fixed in GitLab 13.10+
# - /kaniko/executor --context "${CI_PROJECT_DIR}" --build-arg CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX="${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}" --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}"
- /kaniko/executor --context "${CI_PROJECT_DIR}" --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}"
- /kaniko/executor --context "${CI_PROJECT_DIR}" --build-arg CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX="${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}" --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}"
release:
stage: release
......
# TODO: Sadly the GitLab Dependency Proxy is not currently compatible with Kaniko - should be fixed in GitLab 13.10+
# ARG CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX
# FROM ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/ubuntu:focal
FROM cr.gitlab.switch.ch/helm-charts/shibboleth-sp/image/ubuntu:focal
ARG CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX
FROM ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
......
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