Skip to content

Commit

Permalink
also build usb image for use with packer
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaron committed Nov 19, 2020
1 parent 7598832 commit 5712820
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ jobs:
sudo apt-get -y install \
isolinux \
genisoimage
- name: build cloud/hetzner
- name: build cloud/hetzner ISO
run: make -C src bin/ipxe.iso CONFIG=hcloud EMBED=config/hcloud/hetzner.ipxe
- name: build cloud/hetzner USB
run: make -C src bin/ipxe.usb CONFIG=hcloud EMBED=config/hcloud/hetzner.ipxe
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -31,7 +33,7 @@ jobs:
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
id: upload-release-asset-iso
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -40,3 +42,13 @@ jobs:
asset_path: src/bin/ipxe.iso
asset_name: ipxe-hetzner.iso
asset_content_type: application/x-iso9660-image
- name: Upload Release Asset
id: upload-release-asset-usb
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: src/bin/ipxe.usb
asset_name: ipxe-hetzner.usb
asset_content_type: application/octet-stream

0 comments on commit 5712820

Please sign in to comment.