-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (46 loc) · 1.49 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: bootkit-build
on:
push:
branches:
- main
tags:
- "[0-9].[0-9]+.[0-9]+"
- "v[0-9].[0-9]+.[0-9]+"
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Pull source
uses: actions/checkout@v3
- name: Prepare environment
run: |
sudo add-apt-repository -y ppa:project-machine/squashfuse
sudo apt-get install mtools ovmf pip squashfuse
sudo pip install virt-firmware
sudo wget --progress=dot:mega -O /usr/bin/zot \
https://github.com/project-zot/zot/releases/download/v2.0.0-rc5/zot-linux-amd64-minimal
sudo chmod 755 /usr/bin/zot
which zot
sudo wget --progress=dot:mega -O /usr/bin/stacker \
https://github.com/project-stacker/stacker/releases/download/v1.0.0-rc5/stacker
sudo chmod 755 /usr/bin/stacker
which stacker
stacker --version
sudo wget --progress=dot:mega -O /usr/bin/trust \
https://github.com/project-machine/mos/releases/download/v0.0.28/trust-linux-amd64
sudo chmod 755 /usr/bin/trust
trust keyset add snakeoil
- name: build golang
run: |
make go-stacker-build
- name: build layers
run: |
make STACKER_COMMON_OPTS=--debug
- name: Release bin
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: pkg/bkcust