Skip to content

feat(ci): Commit helm charts to helm-values repository #3

feat(ci): Commit helm charts to helm-values repository

feat(ci): Commit helm charts to helm-values repository #3

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 "$(ls)"
cd island.is/
git config --global user.email "[email protected]"
git config --global user.name "CI Bot"
git checkout main
git checkout "$GITHUB_SHA"
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