Make Dockerfile location configurable
This commit is contained in:
parent
2088faeaa6
commit
4a8753d498
2 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,9 @@ inputs:
|
|||
image:
|
||||
description: 'name of the image: org-name/container-name:latest'
|
||||
required: true
|
||||
dockerfile:
|
||||
description: 'path to Dockerfile'
|
||||
default: 'Dockerfile'
|
||||
runs:
|
||||
using: docker
|
||||
image: Dockerfile
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
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"
|
||||
/kaniko/executor --dockerfile $INPUT_DOCKERFILE --destination "$INPUT_REGISTRY/$INPUT_IMAGE"
|
||||
|
|
Loading…
Add table
Reference in a new issue