Don't use docker buildx #3210
Workflow file for this run
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: helm-chart-package | |
on: | |
pull_request: | |
release: | |
types: [published] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
jobs: | |
helm-package: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Helm | |
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 | |
with: | |
version: v3.8.1 | |
- run: mkdir -p build | |
- id: package | |
run: | | |
helm_output="$(helm package -d build deploy/helm)" | |
tgz_path="${helm_output##*saved it to: }" | |
echo "helm chart tgz path: '${tgz_path}'" | |
[ ! -f "${tgz_path}" ] && echo "failed to find helm chart from 'helm package' stdout" && exit 1 | |
echo "helm_tgz_path=${tgz_path}" >> $GITHUB_OUTPUT | |
echo "helm_tgz_name=${tgz_path##*/}" >> $GITHUB_OUTPUT | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: ${{ steps.package.outputs.helm_tgz_name}} | |
path: ${{ steps.package.outputs.helm_tgz_path}} | |
if-no-files-found: error | |
- uses: softprops/action-gh-release@01570a1f39cb168c169c802c3bceb9e93fb10974 # v2.1.0 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
${{ steps.package.outputs.helm_tgz_path}} |