├── .github └── workflows │ ├── build-iso.yml │ └── releasebuild.yml └── README.md /.github/workflows/build-iso.yml: -------------------------------------------------------------------------------- 1 | name: Build VyOS LTS 2 | 3 | # on: 4 | # release: 5 | # types: [published] 6 | # push: 7 | # branches: 8 | # - master 9 | # on: 10 | # push: 11 | # tags: 12 | # - 'v*' 13 | on: 14 | workflow_dispatch 15 | 16 | 17 | jobs: 18 | build: 19 | runs-on: ubuntu-latest 20 | 21 | steps: 22 | - name: Set VyOS version 23 | run: | 24 | echo "VYOS_VERSION=sagitta-1.4-$(date -u +%Y%m%d%H%M)" >> $GITHUB_ENV 25 | 26 | - name: Pull vyos-build docker image 27 | run: | 28 | docker pull vyos/vyos-build:sagitta 29 | 30 | - name: Build iso 31 | run: | 32 | git clone -b sagitta --single-branch https://github.com/dd010101/vyos-build 33 | cd vyos-build 34 | docker run --rm --privileged -v $(pwd):/vyos -w /vyos vyos/vyos-build:sagitta bash -c 'sudo ./build-vyos-image iso --architecture amd64 --build-type release --version "${{ env.VYOS_VERSION }}"' 35 | 36 | - name: Upload binaries to release 37 | uses: svenstaro/upload-release-action@v2 38 | with: 39 | repo_token: ${{ secrets.GITHUB_TOKEN }} 40 | file: vyos-build/build/vyos-${{ env.VYOS_VERSION }}-amd64.iso 41 | tag: vyos-${{ env.VYOS_VERSION }} 42 | overwrite: true 43 | file_glob: true 44 | 45 | 46 | -------------------------------------------------------------------------------- /.github/workflows/releasebuild.yml: -------------------------------------------------------------------------------- 1 | name: Build Release 2 | 3 | # on: 4 | # release: 5 | # types: [published] 6 | # push: 7 | # branches: 8 | # - master 9 | on: 10 | push: 11 | tags: 12 | - 'v*' 13 | workflow_dispatch: 14 | inputs: 15 | tag: 16 | description: "The tag version you want to build" 17 | 18 | jobs: 19 | build: 20 | runs-on: ubuntu-latest 21 | 22 | steps: 23 | - name: Set version 24 | run: | 25 | if [[ -z "${{ github.event.inputs.tag }}" ]]; then 26 | echo "VYOS_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV 27 | else 28 | echo "VYOS_VERSION=${{ github.event.inputs.tag }}" >> $GITHUB_ENV 29 | fi 30 | 31 | - name: Pull vyos-build docker image 32 | run: | 33 | docker pull vyos/vyos-build:sagitta 34 | 35 | - name: Build iso 36 | run: | 37 | git clone -b sagitta --single-branch https://github.com/vyos/vyos-build 38 | cd vyos-build 39 | docker run --rm --privileged -v $(pwd):/vyos -w /vyos vyos/vyos-build:sagitta bash -c 'sudo ./build-vyos-image iso --architecture amd64 --build-type release --version "${{ env.VYOS_VERSION }}"' 40 | 41 | - name: Upload binaries to release 42 | uses: svenstaro/upload-release-action@v2 43 | with: 44 | repo_token: ${{ secrets.GITHUB_TOKEN }} 45 | file: vyos-build/build/vyos-${{ env.VYOS_VERSION }}-amd64.iso 46 | tag: vyos-sagitta-${{ env.VYOS_VERSION }} 47 | overwrite: true 48 | file_glob: true 49 | 50 | 51 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![build-vyos-lts Status](https://github.com/zengkid/build-vyos-lts/workflows/Build%20VyOS%20LTS/badge.svg)](https://github.com/zengkid/build-vyos-lts/actions) 2 | 3 | # build-vyos-lts 4 | 5 | git tag 6 | 7 | git push origin 8 | 9 | e.g. 10 | 11 | git tag v1.2.4 12 | 13 | git push origin v1.2.4 14 | --------------------------------------------------------------------------------