fix: invalid chars in image name
This commit is contained in:
parent
b79e752979
commit
4ed1549a6d
@ -1,3 +1,3 @@
|
|||||||
FROM gcr.io/kaniko-project/executor:v1.23.2-debug
|
FROM gcr.io/kaniko-project/executor:v1.23.2-debug
|
||||||
COPY build.sh /usr/local/bin/
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
ENTRYPOINT ["build.sh"]
|
ENTRYPOINT ["entrypoint.sh"]
|
||||||
|
@ -15,7 +15,7 @@ EOF
|
|||||||
|
|
||||||
if [ -z "$IMAGEAPP" ]; then
|
if [ -z "$IMAGEAPP" ]; then
|
||||||
REGISTRY="$(echo "$GITHUB_SERVER_URL" | sed 's .*:// ')"
|
REGISTRY="$(echo "$GITHUB_SERVER_URL" | sed 's .*:// ')"
|
||||||
IMAGEAPP="$REGISTRY/$INPUT_IMAGE"
|
IMAGEAPP="$REGISTRY/$(printf '%s' "$INPUT_IMAGE" | tr '[:upper:]' '[:lower:]' | tr -c '[:lower:][:digit:]-:_' _)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/kaniko/executor \
|
/kaniko/executor \
|
Loading…
Reference in New Issue
Block a user