Skip to content

Commit

Permalink
docs: updates tag input description
Browse files Browse the repository at this point in the history
Signed-off-by: Jennifer Power <[email protected]>
  • Loading branch information
jpower432 committed May 10, 2024
1 parent 0560e37 commit 1960674
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/publish-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ runs:
type=semver,pattern=v{{major}},enable=${{ !startsWith(inputs.release_version, 'v0.') }},value=${{ inputs.release_version }}
type=semver,pattern=v{{major}}.{{minor}},value=${{ inputs.release_version }}
type=semver,pattern=v{{version}},value=${{ inputs.release_version }}
type=raw,value=dev-${{ inputs.release_version }},event=workflow_dispatch
type=raw,value=${{ inputs.release_version }}-{{branch}}-{{sha}},event=workflow_dispatch
type=schedule,pattern={{date 'YYYYMMDD'}},prefix=${{ inputs.release_version }}.
flavor: |
latest=false
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ on:
workflow_dispatch:
inputs:
tag:
description: "Name of the tag for the published image"
description: |
Name of the tag for the published image. Will be published as <tag>-<branch>-<sha>.
If a valid semver, associated semver tags will be published as well.
type: string
required: true
skip_tests:
Expand Down Expand Up @@ -66,18 +68,18 @@ jobs:
- name: Set environment information for workflow dispatch
if: ${{ steps.check_event.outputs.event_type == 'workflow_dispatch' }}
run: |
echo "TAG=$INPUT_VERSION" >> "$GITHUB_ENV"
echo "NO_CACHE=$INPUT_NO_CACHE" >> "$GITHUB_ENV"
echo "TAG=$INPUT_VERSION" >> "$GITHUB_ENV"
echo "NO_CACHE=$INPUT_NO_CACHE" >> "$GITHUB_ENV"
env:
INPUT_VERSION: ${{ github.event.inputs.tag }}
INPUT_NO_CACHE: ${{ github.event.inputs.no_cache }}

- name: Set environment information for schedule
if: ${{ steps.check_event.outputs.event_type == 'schedule' }}
run: |
LATEST_VERSION=$( gh release view --json tagName --jq '.["tagName"]' )
echo "TAG=$LATEST_VERSION" >> "$GITHUB_ENV"
echo "NO_CACHE=true" >> "$GITHUB_ENV"
LATEST_VERSION=$( gh release view --json tagName --jq '.["tagName"]' )
echo "TAG=$LATEST_VERSION" >> "$GITHUB_ENV"
echo "NO_CACHE=true" >> "$GITHUB_ENV"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 1960674

Please sign in to comment.