-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (45 loc) · 1.4 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
name: bootkit-build
on:
push:
branches:
- main
tags:
- "[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 squashfuse
sudo wget --progress=dot:mega -O /usr/bin/stacker \
https://github.com/project-stacker/stacker/releases/download/v1.0.0-rc4/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/trust/releases/download/0.0.3/trust
sudo chmod 755 /usr/bin/trust
trust keyset add snakeoil
- name: build bootkit
run: |
make STACKER_COMMON_OPTS=--debug
- name: Publish zot
if: startsWith(github.ref, 'refs/tags/')
env:
PUBLISH_USER: ${{ secrets.ZOTHUB_USERNAME }}
PUBLISH_PASSWORD: ${{ secrets.ZOTHUB_PASSWORD }}
PUBLISH_URL: "docker://zothub.io/machine/bootkit"
run: |
make publish
- name: Release bin
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: pkg/oci-boot