Skip to content

Commit

Permalink
feat: output built image reference
Browse files Browse the repository at this point in the history
  • Loading branch information
mnacharov authored and aexvir committed Jan 11, 2024
1 parent e54575c commit ca09825
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ca09825

Please sign in to comment.