forked from tracelabs/Trace-Labs-VM-M1-Mac-Build
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.18 KB
/
release.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
37
38
39
40
41
42
43
name: release
#a github action that will trigger on push to main or dev branch
# will run the build_tracelabsiso_recipe.sh script inside a kali docker container
on:
push:
tags:
- '*'
jobs:
run-docker:
# Specifies that the job runs on a macOS environment
runs-on: macos-14
permissions:
contents: write
# checkout the code from the repository
steps:
- uses: actions/checkout@v4
# Sets up Docker environment on macOS runner
- name: Install Docker
run: |
brew install docker
brew install colima
colima start
# build docker image
- name: build docker image
run: |
cd $GITHUB_WORKSPACE
chmod +x *.sh
# use docker to run the build_tracelabsiso_recipe.sh script
- name: Run Docker command
run: |
docker run --rm --interactive --net host --privileged --volume $(pwd):/recipes --workdir /recipes docker.io/humandecoded/tlm1-builder ./build_tracelabsiso_recipe.sh
- name: Release with Notes
uses: softprops/action-gh-release@v1
with:
files: "images/*.*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}