Skip to content

Instantly share code, notes, and snippets.

@Voronenko
Created October 19, 2022 19:50
Show Gist options
  • Save Voronenko/b95991c5876867172ef5a34caf67ab5f to your computer and use it in GitHub Desktop.
Save Voronenko/b95991c5876867172ef5a34caf67ab5f to your computer and use it in GitHub Desktop.
Dirty helm patch
yq e ".appVersion = \"${FINAL_BUILD_REF_SLUG}-${FINAL_COMMIT_SHORT_SHA}\"" -i ./your-local-chart/Chart.yaml
helm upgrade your-deployment ./your-local-chart --install --set image.tag=${FINAL_BUILD_REF_SLUG} --namespace yournamespace --create-namespace
kubectl rollout restart deployment your-deployment --namespace yournamespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment