-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): Commit helm charts to helm-values repository
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |