8 lines
289 B
Bash
8 lines
289 B
Bash
|
#!/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"
|