Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
docker-images
alpine
Commits
25a36026
Commit
25a36026
authored
Nov 23, 2020
by
Michael Filz
Browse files
initial commit
parents
Pipeline
#781104
passed with stage
in 15 seconds
Changes
4
Pipelines
359
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
25a36026
---
.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
Dockerfile
0 → 100644
View file @
25a36026
ARG
IMAGE_VERSION
ARG
IMAGE_NAME
FROM
${IMAGE_NAME}:${IMAGE_VERSION}
build_images.sh
0 → 100755
View file @
25a36026
#!/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
image_versions.txt
0 → 100644
View file @
25a36026
3
3.12
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment