Commit 25a36026 authored by Michael Filz's avatar Michael Filz
Browse files

initial commit

parents
Pipeline #826929 passed with stage
in 14 seconds
---
.build:
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
before_script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
script:
- /busybox/sh build_images.sh
tags:
- asprunner
stages:
- build
build_tags:
stage: build
extends: .build
ARG IMAGE_VERSION
ARG IMAGE_NAME
FROM ${IMAGE_NAME}:${IMAGE_VERSION}
#!/bin/sh
if [[ -z "${IMAGE_NAME}" ]]; then
IMAGE_NAME=$CI_PROJECT_NAME
fi
cat image_versions.txt | while read tag
do
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$tag --build-arg IMAGE_VERSION=$tag --build-arg IMAGE_NAME=$IMAGE_NAME
done
Supports Markdown
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