Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FIPS and strict patches #4270

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/check-flavors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build custom MicroK8s flavors

on:
pull_request:
branches: [master]
push:
branches: [master]

jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
patch: [strict, fips]
steps:
- name: Checkout
uses: actions/checkout@v4
- 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: Install lxd
run: |
sudo lxd init --auto
sudo usermod --append --groups lxd $USER
sg lxd -c 'lxc version'
- name: Install snapcraft
run: |
sudo snap install snapcraft --classic
- name: Build snap
run: |
sg lxd -c 'snapcraft --use-lxd'
sudo mv microk8s*.snap microk8s.snap
- name: Uploading snap
uses: actions/upload-artifact@v3
with:
name: microk8s-${{ matrix.patch }}.snap
path: microk8s.snap
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 origin --force ${{ matrix.branch }}
Loading