Skip to content

Commit

Permalink
feat(ci): Commit helm charts to helm-values repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingvar Sigurðsson committed Feb 21, 2025
1 parent 65509ec commit 7623294
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/update-helm-values.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
on:
push:
branches:
- 'feature/update-helm-values'
# TODO: insert - main and - release/*
defaults:
run:
shell: bash

jobs:
prepare:
runs-on: arc-runners
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
path: island.is
# NOTE: checkout main
- name: Checking out relevant branches for a branch build
run: |
set -euo pipefail
echo "Echoing out directories $(ls)"
echo "Echoing out directories $(ls island.is/)"
cd island.is/
git config --global user.email "[email protected]"
git config --global user.name "CI Bot"
update-helm-values-repository:
needs:
- prepare
runs-on: arc-runners
timeout-minutes: 90
steps:
- name: Checkout helm-values repository
uses: actions/checkout@v4
with:
repository: island-is/helm-values
# token: ${{ secrets.PAT_TOKEN }}
path: helm-values
- name: Copy helm charts to helm-values repository
run: |
cp -R island.is/charts/* helm-values/charts/
- name: Commit and push changes to helm-values repository
run: |
cd helm-values
git config --global user.email "[email protected]"
git config --global user.name "CI Bot"
git add .
git commit -m "Updated helm charts"
echo "Done commiting"
# git push

0 comments on commit 7623294

Please sign in to comment.