From 2a514b9feb2b210a622226f831178b5e9e7c71f2 Mon Sep 17 00:00:00 2001 From: 11qu1d <41879031+11qu1d@users.noreply.github.com> Date: Sun, 13 Mar 2022 23:22:34 +0000 Subject: [PATCH] Automatically update helm chart using actions --- .github/workflows/docker-image.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 20c4133..ca935f2 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -29,3 +29,21 @@ jobs: run: | docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG + update-chart: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + repository: fxhash/god + ssh-key: ${{ secrets.MONOREPO_SSH_KEY }} + - name: "Update Helm Chart values" + env: + GITHUB_SHA: ${{ github.sha }} + run: | + sed -i -e "s/tag:\(.*\)/tag: $GITHUB_SHA/g" charts/dependency-charts/fxh-api/values.yaml + git config user.name github-actions + git config user.email github-actions@github.com + git add charts/dependency-charts/fxh-api/values.yaml + git commit -m "🤖 Github Actions: Update fxhash-api image version" + git push