Add complete Alpine Linux bootable images #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| - name: Run tests | |
| run: go test -v ./... | |
| - name: Install build dependencies | |
| run: sudo apt-get update && sudo apt-get install -y cpio | |
| - name: Build binary | |
| run: make build | |
| - name: Build USB image (Alpine-based) | |
| run: make usb-alpine | |
| - name: Create release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: | | |
| dist/drivesync-linux-amd64 | |
| dist/drivesync-usb.zip | |
| dist/drivesync-usb-auto.zip | |
| generate_release_notes: true | |
| body: | | |
| ## Downloads | |
| | File | Description | | |
| |------|-------------| | |
| | `drivesync-linux-amd64` | Static binary for Linux | | |
| | `drivesync-usb.zip` | Standard edition - interactive mode with full TUI | | |
| | `drivesync-usb-auto.zip` | Auto-clone edition - boots and clones automatically, no interaction required | | |
| ### Auto-Clone Edition | |
| The auto-clone edition is pre-configured to: | |
| - Boot directly into cloning mode | |
| - Clone the internal drive to the boot drive | |
| - No user interaction required | |
| Perfect for batch cloning operations or deployment scenarios. |