runner-action-kaniko/entrypoint.sh

8 lines
289 B
Bash
Raw Normal View History

2024-10-04 10:42:09 +00:00
#!/bin/sh
# Setup auth
echo '{"auths":{"'"$(printf "%s" "$INPUT_REGISTRY")"'":{"auth":"'"$(printf "%s" "$INPUT_CREDENTIAL" | base64 | tr -d '\n')"'"}}}' > /kaniko/.docker/config.json
# Build container
/kaniko/executor --dockerfile Dockerfile --destination "$INPUT_REGISTRY/$INPUT_IMAGE"