-
Notifications
You must be signed in to change notification settings - Fork 773
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8cde17d
commit b22761d
Showing
8 changed files
with
1,381 additions
and
4 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,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 [email protected] | ||
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 |
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 [email protected] | ||
git config --global user.name microk8s-bot | ||
git am build-scripts/patches/${{ matrix.patch }}/*.patch | ||
- name: Push branch | ||
run: | | ||
git push --force ${{ matrix.branch }} |
Oops, something went wrong.