File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : VyOS rolling simple build
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ build-iso :
8
+ runs-on : ubuntu-latest
9
+ permissions :
10
+ contents : write
11
+ steps :
12
+
13
+ - name : Set VyOS version
14
+ id : set_vyos_version
15
+ run : |
16
+ echo "VYOS_VERSION=1.4-rolling-$(date -u +%Y%m%d%H%M)" >> $GITHUB_ENV
17
+
18
+ - uses : actions/checkout@v3
19
+
20
+ - name : Update latest_build.txt
21
+ run : echo $(date -u +%Y%m%d%H%M) > $GITHUB_WORKSPACE/latest_build.txt
22
+
23
+ - name : Create autocommit and tag
24
+ uses : stefanzweifel/git-auto-commit-action@v4
25
+ with :
26
+ tagging_message : ${{ env.VYOS_VERSION }}
27
+ commit_message : ${{ env.VYOS_VERSION }}
28
+
29
+ - name : Git clone vyos-build
30
+ run : git clone -b current --single-branch https://github.com/vyos/vyos-build
31
+
32
+ - name : Build ISO
33
+ run : |
34
+ docker run --rm --privileged -v ./vyos-build/:/vyos -w /vyos vyos/vyos-build:current sudo --preserve-env ./build-vyos-image --architecture amd64 --build-by "[email protected] " --vyos-mirror https://rolling-packages.vyos.net/current/ --debian-mirror http://deb.debian.org/debian/ --build-type release --version "${VYOS_VERSION}" iso
35
+
36
+ - name : Copy ISO
37
+ run : |
38
+ cp ./vyos-build/build/live-image-amd64.hybrid.iso ./vyos-$VYOS_VERSION-amd64.iso
39
+
40
+ - name : Publish release
41
+ uses : softprops/action-gh-release@v1
42
+ with :
43
+ tag_name : ${{ env.VYOS_VERSION }}
44
+ fail_on_unmatched_files : true
45
+ files : |
46
+ ./vyos-${{ env.VYOS_VERSION }}-amd64.iso
47
+ ./vyos-${{ env.VYOS_VERSION }}-amd64.iso.minisig
48
+
49
+ - name : Remove old releases
50
+ uses :
dev-drprasad/[email protected]
51
+ with :
52
+ keep_latest : 30
53
+ delete_tags : true
54
+ env :
55
+ GITHUB_TOKEN : ${{ secrets.CUSTOM_GITHUB_TOKEN }}
56
+
You can’t perform that action at this time.
0 commit comments