-
Notifications
You must be signed in to change notification settings - Fork 772
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GHA to update strict and fips branches
- Loading branch information
1 parent
b6c1196
commit bd941fb
Showing
1 changed file
with
28 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,28 @@ | ||
name: Update custom MicroK8s flavor branches | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- { patch: fips, branch: autoupdate/fips } | ||
- { patch: strict, branch: autoupdate/strict } | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Switch to branch | ||
run: | | ||
git checkout -b ${{ matrix.branch }} | ||
- name: Apply patches | ||
run: | | ||
git config --global user.email microk8s@canonical.com | ||
git config --global user.name microk8s-bot | ||
git am build-scripts/patches/${{ matrix.patch }}/*.patch | ||
- name: Push branch | ||
run: | | ||
git push --force ${{ matrix.branch }} |