Skip to content

Commit

Permalink
fix: add automatic commit to charts repo to update commi
Browse files Browse the repository at this point in the history
  • Loading branch information
bredamatt committed Oct 14, 2024
1 parent dd3a1ca commit a8b9f74
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/devnet-ecr-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,24 @@ jobs:
run: |
docker build -t ${{ secrets.AWS_ACCOUNT_ID_AO_DEVNET }}.dkr.ecr.${{ secrets.AWS_REGION_AO_DEVNET }}.amazonaws.com/$REPOSITORY:ao-su-$COMMIT_HASH -f servers/su/Dockerfile.x86 servers/su/
docker push ${{ secrets.AWS_ACCOUNT_ID_AO_DEVNET }}.dkr.ecr.${{ secrets.AWS_REGION_AO_DEVNET }}.amazonaws.com/$REPOSITORY:ao-su-$COMMIT_HASH
update-devnet-commit-sha:
runs-on: ubuntu-latest
needs:
- build-and-push-cu
- build-and-push-mu
- build-and-push-su

steps:
- name: Checkout Helmfile Repository
run: git clone https://github.com/permaweb/charts.git
- name: Update Helmfile `truncatedCommitSHA`
env:
TRUNCATED_SHA: ${{ env.COMMIT_HASH }}
run: |
cd charts
sed -i "s/commitSHA: \".*\"/commitSHA: \"${TRUNCATED_SHA}\"/" helmfile/devnet/commit-sha.yaml
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit -am "fix: update truncatedCommitSHA to ${TRUNCATED_SHA}"
git push https://${secrets.AO_TO_CHARTS_PAT}@github.com/permaweb/charts.git main

0 comments on commit a8b9f74

Please sign in to comment.