This repository has been archived by the owner on May 1, 2024. It is now read-only.
forked from naa0yama/vyos-build-lts
-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (69 loc) · 2.25 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
79
80
81
82
83
84
name: VyOS LTS Build
on:
workflow_dispatch:
push:
tags:
- "*"
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 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:equuleus
env:
TZ: America/Chicago
options: --privileged
steps:
- name: Set env
run: |
echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV
- name: git clone vyos-build
run: |
set -eux
git clone -b equuleus --single-branch https://github.com/vyos/vyos-build
- name: configure
working-directory: vyos-build
run: |
set -eux
./configure \
--architecture amd64 \
--build-by [email protected] \
--build-type release \
--version ${{ env.RELEASE_VERSION }}
- name: make iso
working-directory: vyos-build
run: |
set -eux
make iso
- name: ls
run: |
set -eux
pwd
ls -lah
ls -lah vyos-build/build
- uses: actions/create-release@master
id: create_release # ファイルアップロードに outputs の値を使用するため ID が必要
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: VyOS ${{ github.ref }} LTS
body: |
VyOS ${{ env.RELEASE_VERSION }} LTS
draft: true
prerelease: true
- uses: actions/upload-release-asset@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# リリースのアップロード URL (必須)
upload_url: ${{ steps.create_release.outputs.upload_url }}
# 添付ファイルのパス (必須)
asset_path: vyos-build/build/vyos-${{ env.RELEASE_VERSION }}-amd64.iso
# 添付ファイルの表示名 (必須)
asset_name: vyos-${{ env.RELEASE_VERSION }}-amd64.iso
# 添付ファイルに対応する content-type (必須)
asset_content_type: application/x-iso9660-image