Skip to content

Commit

Permalink
fix helm chart release (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
matheuscscp authored Jul 7, 2024
1 parent 460c691 commit 830b439
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
11 changes: 3 additions & 8 deletions .github/actions/release-helm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions helm/gke-metadata-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 830b439

Please sign in to comment.