mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-13 03:52:55 +01:00
Add crane and jq to image
This commit is contained in:
parent
125b2df0ea
commit
ce46c57389
2 changed files with 32 additions and 1 deletions
23
kaniko/entry_point.sh
Normal file
23
kaniko/entry_point.sh
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -z "$BUILD_IMAGE_NO_MESSAGE" ]; then
|
||||
echo "You are using a GitLab CI build-image with kaniko and crane"
|
||||
echo "You can suppress this message by setting BUILD_IMAGE_NO_MESSAGE"
|
||||
|
||||
/kaniko/executor version
|
||||
echo "Crane version: $(crane version)"
|
||||
fi
|
||||
|
||||
if [ -z "$BUILD_IMAGE_NO_AUTO_LOGIN" ]; then
|
||||
if [ -n "$CI_REGISTRY_USER" ] && [ -n "$CI_REGISTRY_PASSWORD" ] && [ -n "$CI_REGISTRY" ]; then
|
||||
echo "Logging into GitLab CI registry ($CI_REGISTRY)"
|
||||
echo "You can suppress this behavior by setting BUILD_IMAGE_NO_AUTO_LOGIN"
|
||||
crane auth login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
sh
|
||||
else
|
||||
exec "$@"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue