Skip to content

Commit

Permalink
feat: replace auto-tag action
Browse files Browse the repository at this point in the history
  • Loading branch information
lorepanichi committed May 29, 2024
1 parent c700092 commit c09f20e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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`
- `latest_tag`: generate `latest` tag for the image. Default: `false`
- `file_paths`: glob pattern list. These should be the paths that trigger this specific action. Useful in a monorepo, to have action-auto-tag properly bump the version. Due to limitations with GitHub Actions inputs, this is specified as a string. Default: ''
- `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
11 changes: 7 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ inputs:
required: false
default: "false"

file_paths:
description: "glob pattern list. These should be the paths that trigger this specific action. Usefull in a monorepo, to have action-auto-tag properly bump the version. Due to limitations with GitHub Actions inputs, this is specified as a string."
required: false
default: ''

context_path:
description: "path to context directory (where the build starts)"
required: true
Expand Down Expand Up @@ -247,12 +252,10 @@ runs:
- name: Bump container version and create new github tag
if: ${{ ! inputs.external_tag }}
id: bump_version
uses: mathieudutour/[email protected]
uses: panepan83/action-auto-tag@v1
with:
github_token: ${{ inputs.github_token }}
tag_prefix: container/${{ inputs.image_name }}-
fetch_all_tags: true
# we must create a git tag only when pushing
file_paths: ${{ inputs.file_paths }}
dry_run: ${{ inputs.dry_run == 'true' || inputs.push == 'false' }}

- name: Build images names
Expand Down

0 comments on commit c09f20e

Please sign in to comment.