2023-11-02 12:45:11 -04:00
|
|
|
name: Release Helm Chart
|
|
|
|
description: "Creates a PR in edgelesssys/helm to publish a new Chart."
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
chartPath:
|
|
|
|
description: "Path to chart that should be published"
|
|
|
|
required: true
|
|
|
|
githubToken:
|
|
|
|
description: "GitHub token"
|
|
|
|
required: true
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-12-20 10:10:35 -05:00
|
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
2023-11-02 12:45:11 -04:00
|
|
|
with:
|
|
|
|
repository: edgelesssys/helm
|
|
|
|
ref: main
|
|
|
|
path: helm
|
|
|
|
|
|
|
|
- name: Update s3proxy Chart version
|
|
|
|
id: update-chart-version
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
helm package ${{ inputs.chartPath }} --destination helm/stable
|
|
|
|
cd helm
|
|
|
|
helm repo index stable --url https://helm.edgeless.systems/stable
|
|
|
|
echo version=$(yq eval ".version" ${{ inputs.chartPath }}/Chart.yaml) | tee -a $GITHUB_OUTPUT
|
|
|
|
|
|
|
|
- name: Create pull request
|
2024-02-21 09:29:06 -05:00
|
|
|
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50 # v6.0.0
|
2023-11-02 12:45:11 -04:00
|
|
|
with:
|
|
|
|
path: helm
|
|
|
|
branch: "release/s3proxy/${{ steps.update-chart-version.outputs.version }}"
|
|
|
|
base: main
|
|
|
|
title: "s3proxy: release version ${{ steps.update-chart-version.outputs.version }}"
|
|
|
|
body: |
|
|
|
|
:robot: *This is an automated PR.* :robot:
|
|
|
|
|
|
|
|
This PR is triggered as part of the Constellation [release pipeline](https://github.com/edgelesssys/constellation/actions/runs/${{ github.run_id }}).
|
|
|
|
It adds a new packaged chart to the repo's stable stream.
|
|
|
|
commit-message: "s3proxy: release version ${{ steps.update-chart-version.outputs.version }}"
|
|
|
|
committer: edgelessci <edgelessci@users.noreply.github.com>
|
|
|
|
# We need to push changes using a token, otherwise triggers like on:push and on:pull_request won't work.
|
|
|
|
token: ${{ !github.event.pull_request.head.repo.fork && inputs.githubToken || '' }}
|