This repository has been archived by the owner on May 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
78 lines (66 loc) · 1.89 KB
/
vyos_lts_build_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
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
75
76
77
78
name: VyOS LTS Build
on:
# push:
# tags:
# - "*"
workflow_dispatch:
inputs:
version:
required: true
default: "1.4.0"
description: VyOS version
type: string
jobs:
build:
runs-on: ubuntu-latest
container:
# For VyOS 1.2 (crux) use vyos/vyos-build:crux
# For VyOS 1.3 (equuleus) use vyos/vyos-build:equuleus
# For VyOS 1.4 (sagitta) use vyos/vyos-build:sagitta
# For our VyOS rolling release you should use vyos/vyos-build which will always refer to the latest image.
# Ref: https://docs.vyos.io/en/latest/contributing/build-vyos.html#build
image: vyos/vyos-build:sagitta
env:
TZ: Asia/Tokyo
options: --privileged
env:
TZ: Asia/Tokyo
permissions:
actions: read
contents: write
steps:
- name: Git clone vyos-build
run: |
set -eux
git clone -b sagitta --single-branch https://github.com/vyos/vyos-build
- name: Cleanup env
working-directory: vyos-build
run: |
set -eux
make clean
- name: Make ISO
working-directory: vyos-build
run: |
set -eux
./build-vyos-image iso \
--architecture "amd64" \
--build-by "9667078+naa0yama@users.noreply.github.com" \
--build-type "release" \
--version "${{ inputs.version }}"
- name: ls
run: |
set -eux
pwd
ls -lah
ls -lah vyos-build/build
- name: Pre-Release
uses: softprops/action-gh-release@v2
with:
name: VyOS ${{ inputs.version }} LTS
tag_name: ${{ inputs.version }}
body: |
VyOS ${{ inputs.version }} LTS
draft: true
prerelease: true
files: |
vyos-build/build/vyos-${{ inputs.version }}-amd64.iso