Build and publish staging or stable charts #11
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
name: Build and publish staging or stable charts | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: "Tag to build" | |
required: true | |
type: string | |
release: | |
description: "Release stable versions, staging otherwise" | |
type: boolean | |
default: true | |
jobs: | |
stable-charts: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Log inputs | |
run: echo "${{ toJSON(github.event.inputs) }}" | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ inputs.tag }} | |
- name: Publish OBS staging charts | |
if: inputs.release == false | |
uses: "./.github/actions/chart" | |
with: | |
build_env: staging | |
- name: Publish OBS stable charts | |
if: inputs.release == true | |
uses: "./.github/actions/chart" | |
with: | |
build_env: stable | |
keep_previous: yes | |
- name: create release | |
if: inputs.release == true | |
run: gh release create ${{ inputs.tag }} --prerelease --generate-notes ./build/* |