Skip to content

Commit

Permalink
Update workflow not to run by matrix (#5262)
Browse files Browse the repository at this point in the history
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
  • Loading branch information
Warashi authored Oct 8, 2024
1 parent c4aca59 commit cf39825
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/publish_image_chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,31 @@ jobs:
labels: helmRepo=pipecd
data: ${{ env.PIPECD_VERSION }}

release-quickstart-manifests:
runs-on: ubuntu-latest
needs: artifacts
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
steps:
# setup tools and repositories
- name: Install helm
uses: Azure/setup-helm@v1
with:
version: ${{ env.HELM_VERSION }}
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Determine version
run: echo "PIPECD_VERSION=$(git describe --tags --always --abbrev=7)" >> $GITHUB_ENV

# Building and publishing quickstart manifests.
- name: Build quickstart manifests
if: startsWith(github.ref, 'refs/tags/')
run: |
helm template pipecd oci://ghcr.io/pipe-cd/chart/pipecd --version ${{ env.PIPECD_VERSION }} -n pipecd -f quickstart/control-plane-values.yaml > quickstart/manifests/control-plane.yaml
helm template piped oci://ghcr.io/pipe-cd/chart/piped --version ${{ env.PIPECD_VERSION }} -n pipecd --set quickstart.enabled=true --set quickstart.pipedId=\<YOUR_PIPED_ID\> --set quickstart.pipedKeyData=\<YOUR_PIPED_KEY_DATA\> > quickstart/manifests/piped.yaml
- name: Publish quickstart manifests
if: startsWith(github.ref, 'refs/tags/')
uses: peter-evans/create-pull-request@v6
with:
title: "[bot] Publish quickstart manifests"
Expand Down

0 comments on commit cf39825

Please sign in to comment.