Skip to content

Commit

Permalink
ci: stop using tags for chart releases
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywhitaker3 committed Apr 20, 2024
1 parent 2e68c72 commit d0db172
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Chart

on:
push:
tags:
- chart-*
branches:
- main

jobs:
release:
Expand All @@ -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
Expand Down

0 comments on commit d0db172

Please sign in to comment.