diff --git a/.github/actions/release-helm/action.yml b/.github/actions/release-helm/action.yml index 22a44a6..2aa500a 100644 --- a/.github/actions/release-helm/action.yml +++ b/.github/actions/release-helm/action.yml @@ -27,19 +27,14 @@ inputs: runs: using: composite steps: - - run: echo "HELM_WITH_DIGEST=${image}@$(cat helm-digest.txt)" >> $GITHUB_ENV - shell: bash - env: - image: ${{ inputs.registry }}/matheuscscp/gke-metadata-server-helm - run: | helm push $(cat helm-package.txt) oci://${registry}/matheuscscp 2>&1 | tee helm-push.logs - digest=$(cat helm-push.logs | grep Digest: | awk '{print $NF}') - if [ "$digest" != "$(cat helm-digest.txt)" ]; then - echo "Error: Helm OCI artifact digests are different. Digest on first push: $(cat helm-digest.txt), Digest on second push: $digest"; \ - fi + cat helm-push.logs | grep Digest: | awk '{print $NF}' > helm-digest.txt + echo "HELM_WITH_DIGEST=${image}@$(cat helm-digest.txt)" >> $GITHUB_ENV shell: bash env: registry: ${{ inputs.registry }} + image: ${{ inputs.registry }}/matheuscscp/gke-metadata-server-helm - run: cosign sign --yes $HELM_WITH_DIGEST shell: bash - run: | diff --git a/helm/gke-metadata-server/Chart.yaml b/helm/gke-metadata-server/Chart.yaml index c6e480e..5f48cda 100644 --- a/helm/gke-metadata-server/Chart.yaml +++ b/helm/gke-metadata-server/Chart.yaml @@ -30,10 +30,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.5.0 +version: 0.5.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "0.5.0" +appVersion: "0.5.1"