runner-action-kaniko/entrypoint.sh

8 lines
296 B
Bash
Raw Normal View History

2024-10-04 12:42:09 +02: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
2025-02-05 16:12:04 +01:00
/kaniko/executor --dockerfile $INPUT_DOCKERFILE --destination "$INPUT_REGISTRY/$INPUT_IMAGE"