-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: stop using tags for chart releases
- Loading branch information
1 parent
2e68c72
commit d0db172
Showing
1 changed file
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ name: Chart | |
|
||
on: | ||
push: | ||
tags: | ||
- chart-* | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
|
@@ -22,7 +22,19 @@ jobs: | |
CHART_VERSION=$(echo ${{ github.ref_name }} | grep -Eo "v.*") | ||
echo "CHART_VERSION=${CHART_VERSION}" >> $GITHUB_ENV | ||
- name: Login to ghcr.io | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Check if chart exists | ||
id: chartExists | ||
run: docker manifest inspect ghcr.io/henrywhitaker3/prompage-helm:${{ env.CHART_VERSION }} | ||
|
||
- name: Push chart | ||
if: failure() && steps.chartExists.outcome == 'failure' | ||
uses: appany/[email protected] | ||
with: | ||
name: prompage-helm | ||
|