Skip to content

Commit

Permalink
Github Actions - Build and Release Workflow - Squash merge (#14)
Browse files Browse the repository at this point in the history
* Create docker-image.yml

* Update docker-image.yml

* Update docker-image.yml

* Update docker-image.yml

* Update docker-image.yml

* Update and rename docker-image.yml to build-release.yml
  • Loading branch information
CoffeeKanzler authored Jun 15, 2023
1 parent e51a25a commit 6faa301
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and release ISO

on:

workflow_dispatch:
push:


jobs:

build:
permissions:
contents: write
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag build:latest


- name: Run container and build ISO
run: |
docker run --volume ${{ github.workspace }}:/repo --privileged --name build build:latest
mv live-image-amd64.iso rTS_RescueMedia.iso
- name: Upload testing release to GitHub
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') != true
with:
files: ./rTS_RescueMedia.iso
name: testing
prerelease: true
tag_name: testing
generate_release_notes: true

- name: Release new Version
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./rTS_RescueMedia.iso
generate_release_notes: true

0 comments on commit 6faa301

Please sign in to comment.