mirror of
https://github.com/aevea/action-kaniko.git
synced 2025-01-30 13:59:38 +01:00
feat: output built image reference
This commit is contained in:
parent
e54575cc70
commit
ca098255c5
3 changed files with 10 additions and 0 deletions
|
@ -175,3 +175,9 @@ with:
|
|||
```
|
||||
|
||||
for the tag `pre-0.1` will push `kaniko:0.1`, as the `pre-` part will be stripped from the tag name.
|
||||
|
||||
## Outputs
|
||||
|
||||
### `image`
|
||||
|
||||
Full reference to the built image with registry and tag.
|
||||
|
|
|
@ -57,6 +57,9 @@ inputs:
|
|||
debug:
|
||||
description: Enables trace for entrypoint.sh
|
||||
required: false
|
||||
outputs:
|
||||
image:
|
||||
description: "Full reference to the built image with registry and tag"
|
||||
runs:
|
||||
using: "docker"
|
||||
image: "Dockerfile"
|
||||
|
|
|
@ -90,6 +90,7 @@ EOF
|
|||
|
||||
# https://github.com/GoogleContainerTools/kaniko/issues/1349
|
||||
/kaniko/executor --reproducible --force $ARGS
|
||||
echo "image=$IMAGE" >> $GITHUB_OUTPUT
|
||||
|
||||
if [ ! -z $INPUT_SKIP_UNCHANGED_DIGEST ]; then
|
||||
export DIGEST=$(cat digest)
|
||||
|
|
Loading…
Reference in a new issue