forked from flatcar/sysext-bakery
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (64 loc) · 1.77 KB
/
release.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Build and release Systemd sysext images
on:
push:
tags:
- 'latest'
- '[0-9]+'
jobs:
build:
runs-on: ubuntu-22.04
permissions:
# allow the action to create a release
contents: write
steps:
# checkout the sources
- uses: actions/checkout@v4
with:
path: bakery
# prepare build host
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: install prerequisites
run: |
set -euxo pipefail
sudo apt update -qq && sudo apt install -yqq \
curl \
jq \
squashfs-tools \
xz-utils \
gawk
- name: build release artifacts
run: |
pushd bakery
./release_build.sh
- name: create a new latest release with some artifacts
uses: softprops/action-gh-release@v2
with:
make_latest: true
body_path: bakery/Release.md
files: |
bakery/SHA256SUMS
bakery/!(kubernetes|crio|ollama)*.raw
bakery/*.conf
- name: upload kubernetes x86-64 artifacts
uses: softprops/action-gh-release@v2
with:
files: |
bakery/kubernetes*-x86-64.raw
- name: upload kubernetes arm64 artifacts
uses: softprops/action-gh-release@v2
with:
files: |
bakery/kubernetes*-arm64.raw
- name: upload crio artifacts
uses: softprops/action-gh-release@v2
with:
files: |
bakery/crio*.raw
- name: upload ollama artifacts
uses: softprops/action-gh-release@v2
with:
files: |
bakery/ollama*.raw