Skip to content

Commit

Permalink
Add GHA to update strict and fips branches
Browse files Browse the repository at this point in the history
  • Loading branch information
neoaggelos committed Oct 31, 2023
1 parent b6c1196 commit bd941fb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/update-flavors.yml
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 }}

0 comments on commit bd941fb

Please sign in to comment.