Install distrobox thru curl #24
This file contains 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 ISO | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup distrobox | |
run: | | |
sudo apt update | |
sudo apt install -y git podman | |
curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/install | sudo sh | |
git clone --recurse-submodules https://github.com/zstg/StratOS-iso | |
distrobox create -i archlinux -n isobuilder | |
- name: Build ISO | |
id: build_iso | |
run: | | |
cd StratOS-iso | |
export BUILD_DATE=$(distrobox exec -n isobuilder -- date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d) | |
distrobox exec -n isobuilder -- mount -t proc proc /proc | |
distrobox exec -n isobuilder -- mount -t sysfs sys /sys | |
distrobox exec -n isobuilder -- mount --rbind /dev /dev | |
distrobox exec -n isobuilder -- mount --rbind /run /run | |
chmod +x ./build.sh | |
distrobox exec -n isobuilder -- sudo ./build.sh | |
echo "::set-output name=date::${BUILD_DATE}" | |
- name: Upload | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "output/*.iso" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ steps.build_iso.outputs.date }} |