Skip to content

Commit

Permalink
feat: add latest_tag input to generate latest tag (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorepanichi authored May 24, 2024
1 parent b15e936 commit c700092
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ GitHub Action for build and push docker images, Sysdig way

- `dockerfile`: path to docker file (defaults to {{context_path}}/Dockerfile)
- `dry_run`: whether to actually create git tag and push the image (default: false)
- `external_tag`: use this tag instead of having the action calculate it
- `latest_tag`: "generate `latest` tag for the image". Default: `false`
- `push_to_artifactory`: whether push image to artifactory (default: true)
- `push_to_quay`: whether push image to quay.io (default: false)
- `artifactory_prefix`: prefix for artifactory repository. Default: `docker.internal.sysdig.com`
Expand Down
9 changes: 7 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ inputs:
required: false

external_tag:
description: "use this provided tag instead of the having the action calculate it"
description: "use this tag instead of having the action calculate it"
required: false

latest_tag:
description: "generate `latest` tag for the image"
required: false
default: "false"

context_path:
description: "path to context directory (where the build starts)"
required: true
Expand Down Expand Up @@ -283,7 +288,7 @@ runs:
with:
images: ${{ steps.build_image_names.outputs.names }}
flavor: |
latest=auto
latest=${{ inputs.latest_tag }}
prefix=
suffix=
labels: |
Expand Down

0 comments on commit c700092

Please sign in to comment.