Skip to content

Commit

Permalink
release action
Browse files Browse the repository at this point in the history
  • Loading branch information
humandecoded committed Apr 24, 2024
1 parent 16f2806 commit c4fb42b
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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-12
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
colima start
# build docker image
- name: build docker image
run: |
cd $GITHUB_WORKSPACE
chmod +x *.sh
docker build -t tlm1-builder .
# 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 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 }}

0 comments on commit c4fb42b

Please sign in to comment.