forked from tracelabs/tlosint-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 1.09 KB
/
releases.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
name: Releases
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build OVA
run: |
sudo apt update
sudo apt -y install debos p7zip qemu-utils zerofree
cd $GITHUB_WORKSPACE
chmod +x scripts/tl/*.sh
chmod +x scripts/*.sh
chmod +x *.sh
docker build -t tlvm-builder .
docker run --rm --interactive --net host --privileged --group-add $(stat -c '%g' /dev/kvm) --volume $(pwd):/recipes -v $(pwd)/images/:/images --workdir /recipes tlvm-builder ./build.sh -v virtualbox -f ova
docker run --rm --interactive --net host --privileged --group-add $(stat -c '%g' /dev/kvm) --volume $(pwd):/recipes -v $(pwd)/images/:/images --workdir /recipes tlvm-builder ./build.sh -v vmware -f vmware
- name: Release with Notes
uses: softprops/action-gh-release@v1
with:
files: "images/*.*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}