This repository has been archived by the owner on May 4, 2024. It is now read-only.
VyOS LTS Build #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |