Skip to content

Commit

Permalink
test version
Browse files Browse the repository at this point in the history
  • Loading branch information
JuniorJPDJ authored Apr 10, 2024
1 parent 7954127 commit dcf196e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/chart-oci-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,22 @@ jobs:
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
with:
tags: |
type=ref,event=pr,prefix=0.0.0_pr-,priority=2999
type=ref,event=pr,priority=2999
type=raw,enable={{is_default_branch}},value=${{ steps.props.outputs.version }},priority=1999
- name: Format PR tag to Chart version
id: ver
run: |
ver="${{ steps.meta.outputs.version }}"
[[ $ver == pr-* ]] && ver="0.0.0+$ver"
echo "version=$ver" >> "$GITHUB_OUTPUT"
- name: Release Helm Chart
uses: appany/[email protected]
with:
name: ${{ matrix.chart }}
repository: juniorjpdj/charts
tag: ${{ steps.meta.outputs.version }}
tag: ${{ steps.ver.outputs.version }}
registry: ghcr.io
registry_username: ${{ github.actor }}
registry_password: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit dcf196e

Please sign in to comment.