Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion actions/build-and-push-helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ This GitHub Action packages a Helm chart and pushes it to a Azure Container Regi
registry: ${{ secrets.ACR_URL }}
```

<!-- x-release-please-end-version -->
<!-- x-release-please-end-version -->
14 changes: 8 additions & 6 deletions actions/build-and-push-helm/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ inputs:
required: true
outputs:
chart:
description: "Name of the Helm chart."
description: "The name of the chart."
value: ${{ steps.set_chart_name.outputs.chart }}
ver:
description: "Version of the Helm chart."
description: "The version of the chart."
value: ${{ steps.set_chart_version.outputs.ver }}

runs:
using: "composite"
steps:
Expand All @@ -27,15 +30,15 @@ runs:
with:
version: "v3.12.0"

- name: Get chart's name
- name: Get the chart's name
id: set_chart_name
run: |
CHART=$(grep '^name:' Chart.yaml | awk '{print $2}')
echo "chart=$CHART" >> $GITHUB_OUTPUT
working-directory: ${{ inputs.context }}
shell: bash

- name: Get the chart's version
- name: Get chart's version
id: set_chart_version
run: |
VER=$(grep '^version:' Chart.yaml | awk '{print $2}')
Expand All @@ -51,7 +54,6 @@ runs:

- name: Publish chart to ACR
run: |
helm push ${{ steps.set-chart-name.outputs.chart }}-${{ steps.set-chart-version.outputs.ver }}.tgz \
oci://${{ inputs.registry }}/helm/${{ inputs.domain }}
helm push "${{ steps.set_chart_name.outputs.chart }}-${{ steps.set_chart_version.outputs.ver }}.tgz" oci://${{ inputs.registry }}/helm/${{ inputs.domain }}
working-directory: ${{ inputs.context }}
shell: bash
Loading