diff --git a/.github/workflows/__test-action-helm-release-chart.yml b/.github/workflows/__test-action-helm-release-chart.yml index 3a4d0c74..2b63d398 100644 --- a/.github/workflows/__test-action-helm-release-chart.yml +++ b/.github/workflows/__test-action-helm-release-chart.yml @@ -27,6 +27,7 @@ jobs: }, { "path": ".image.tag", "value": "0.1.0" } ] + - name: umbrella-application values: | [ @@ -52,7 +53,7 @@ jobs: with: oci-registry: ghcr.io oci-registry-password: ${{ github.token }} - chart: ${{ matrix.chart.name }}-test + name: ${{ matrix.chart.name }}-test path: tests/charts/${{ matrix.chart.name }} values: ${{ matrix.chart.values }} tag: 0.1.0 @@ -62,7 +63,7 @@ jobs: # yamllint disable rule:line-length - name: Check release chart output run: | - if [ "${{ steps.release-chart.outputs.image }}" != "ghcr.io/hoverkraft-tech/ci-github-container/charts/${{ matrix.chart.name }}-test/ci-github-container:0.1.0" ]; then + if [ "${{ steps.release-chart.outputs.image }}" != "ghcr.io/hoverkraft-tech/ci-github-container/charts/${{ matrix.chart.name }}-test:0.1.0" ]; then echo "Unexpected chart image name" exit 1 fi @@ -72,7 +73,7 @@ jobs: - name: Check chart status run: | echo ${{ github.token }} | helm registry login -u ${{ github.repository_owner }} --password-stdin ghcr.io - helm pull --version "0.1.0" oci://ghcr.io/hoverkraft-tech/ci-github-container/charts/${{ matrix.chart.name }}-test/ci-github-container + helm pull --version "0.1.0" oci://ghcr.io/hoverkraft-tech/ci-github-container/charts/${{ matrix.chart.name }}-test env: HELM_EXPERIMENTAL_OCI: "1" # yamllint enable rule:line-length diff --git a/actions/helm/release-chart/action.yml b/actions/helm/release-chart/action.yml index c8024b56..2ecd0f62 100644 --- a/actions/helm/release-chart/action.yml +++ b/actions/helm/release-chart/action.yml @@ -28,8 +28,8 @@ inputs: OCI registry password. See https://github.com/appany/helm-oci-chart-releaser#usage. default: ${{ github.token }} - chart: - description: "Chart name to release" + name: + description: "Chart repository name to release" required: true path: description: "Path to the chart to release" @@ -329,9 +329,10 @@ runs: - id: chart-releaser uses: appany/helm-oci-chart-releaser@d94988c92bed2e09c6113981f15f8bb495d10943 # v0.5.0 with: - name: ${{ github.event.repository.name }} - repository: ${{ github.repository }}/charts/${{ inputs.chart }} + name: ${{ inputs.name }} + repository: ${{ github.repository }}/charts tag: ${{ inputs.tag }} + app_version: ${{ inputs.tag }} path: ${{ inputs.path }} registry: ${{ inputs.oci-registry }} registry_username: ${{ inputs.oci-registry-username }}