-
Notifications
You must be signed in to change notification settings - Fork 29
46 lines (38 loc) · 1001 Bytes
/
release.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
name: Release
on:
push:
tags:
- 'v*'
- 'test-v*'
pull_request:
env:
ALPINE_VERSION: 3.20.3
DOCKER_BUILDKIT: 1
jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: recursive
persist-credentials: false
- name: Install the arm64 emulator for binfmt_misc
run: |
docker run --privileged --rm tonistiigi/binfmt --install arm64
- name: Build the mkimage images
run: |
make mkimage ARCH=x86_64
make mkimage ARCH=aarch64
- name: Build the std edition
run: |
make iso EDITION=std ARCH=x86_64
make iso EDITION=std ARCH=aarch64
- name: Create release
if: github.event_name != 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${GITHUB_REF##*/}"
gh release create --draft --title "${tag}" "${tag}" iso/alpine-lima-{std,rd}-*