Commit 1e7428d5 authored by Sandro Mathys's avatar Sandro Mathys
Browse files

use GitLab Dependency Proxy

parent f2c292ca
......@@ -19,14 +19,14 @@ build:
except:
- tags
script:
- /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
only:
- tags
script:
- /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:
inherit:
......
FROM cr.gitlab-int.switch.ch/maps/upstream-images/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