summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAndrii Andrieiev <a.andrieiev@sentrium.io>2023-09-04 11:57:55 +0300
committerAndrii Andrieiev <a.andrieiev@sentrium.io>2023-09-04 11:57:55 +0300
commit4de125cf236797fc8db9f84aeeeeb86388513664 (patch)
treebce57e92e74e2af0bffbef4568e5b9c434942630 /.github
parentfa8f5cdb88e575f8378c80548bf706ad9abc5790 (diff)
downloadvyos-rolling-nightly-builds-4de125cf236797fc8db9f84aeeeeb86388513664.tar.gz
vyos-rolling-nightly-builds-4de125cf236797fc8db9f84aeeeeb86388513664.zip
VyOS rolling simple build
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/vyos-rolling-simple-build.yml56
1 files changed, 56 insertions, 0 deletions
diff --git a/.github/workflows/vyos-rolling-simple-build.yml b/.github/workflows/vyos-rolling-simple-build.yml
new file mode 100644
index 0000000..606e976
--- /dev/null
+++ b/.github/workflows/vyos-rolling-simple-build.yml
@@ -0,0 +1,56 @@
+name: VyOS rolling simple build
+
+on:
+ workflow_dispatch:
+
+jobs:
+ build-iso:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ steps:
+
+ - name: Set VyOS version
+ id: set_vyos_version
+ run: |
+ echo "VYOS_VERSION=1.4-rolling-$(date -u +%Y%m%d%H%M)" >> $GITHUB_ENV
+
+ - uses: actions/checkout@v3
+
+ - name: Update latest_build.txt
+ run: echo $(date -u +%Y%m%d%H%M) > $GITHUB_WORKSPACE/latest_build.txt
+
+ - name: Create autocommit and tag
+ uses: stefanzweifel/git-auto-commit-action@v4
+ with:
+ tagging_message: ${{ env.VYOS_VERSION }}
+ commit_message: ${{ env.VYOS_VERSION }}
+
+ - name: Git clone vyos-build
+ run: git clone -b current --single-branch https://github.com/vyos/vyos-build
+
+ - name: Build ISO
+ run: |
+ docker run --rm --privileged -v ./vyos-build/:/vyos -w /vyos vyos/vyos-build:current sudo --preserve-env ./build-vyos-image --architecture amd64 --build-by "autobuild@vyos.net" --vyos-mirror https://rolling-packages.vyos.net/current/ --debian-mirror http://deb.debian.org/debian/ --build-type release --version "${VYOS_VERSION}" iso
+
+ - name: Copy ISO
+ run: |
+ cp ./vyos-build/build/live-image-amd64.hybrid.iso ./vyos-$VYOS_VERSION-amd64.iso
+
+ - name: Publish release
+ uses: softprops/action-gh-release@v1
+ with:
+ tag_name: ${{ env.VYOS_VERSION }}
+ fail_on_unmatched_files: true
+ files: |
+ ./vyos-${{ env.VYOS_VERSION }}-amd64.iso
+ ./vyos-${{ env.VYOS_VERSION }}-amd64.iso.minisig
+
+ - name: Remove old releases
+ uses: dev-drprasad/delete-older-releases@v0.2.1
+ with:
+ keep_latest: 30
+ delete_tags: true
+ env:
+ GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
+