This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
Bootstrapping + releasing ubuntu rootfs #38
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: Bootstrapping + releasing ubuntu rootfs | |
on: | |
push: | |
branches: [ "main" ] | |
schedule: | |
- cron: "0 0 * * *" # run at the start of every day | |
workflow_dispatch: | |
jobs: | |
bootstrap-rootfs: | |
strategy: | |
matrix: | |
version: [ "22.04", "23.10" ] | |
codename: ["jammy", "mantic"] | |
exclude: | |
- version: 22.04 | |
codename: lunar | |
- version: 23.04 | |
codename: jammy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checking out repository code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Installing dependencies | |
run: sudo apt-get update && sudo apt-get install -y debootstrap | |
- name: Bootstrapping ubuntu ${{ matrix.version }} | |
run: sudo bash bootstrap_ubuntu.sh ${{ matrix.version }} ${{ matrix.codename }} | |
- name: Uploading rootfs as artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ubuntu-22.04 | |
retention-days: 1 | |
path: | | |
/tmp/ubuntu-rootfs-${{ matrix.version }}.tar.xz | |
/tmp/ubuntu-rootfs-${{ matrix.version }}.sha256 | |
create-release: | |
runs-on: ubuntu-latest | |
needs: bootstrap-rootfs | |
steps: | |
- name: Downloading rootfs artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
path: /tmp/artifacts/ | |
- name: Generating release tag | |
id: tag | |
run: | | |
date=$(date +"%Y.%m.%d_%H-%M") | |
echo "release_tag=$date" >> $GITHUB_OUTPUT | |
- name: Creating new release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ steps.tag.outputs.release_tag }} | |
name: Automated Ubuntu RootFS build - ${{ steps.tag.outputs.release_tag }} | |
body: | | |
These are completely **unmodified** ubuntu rootfs images for the depthboot builder script. | |
Please download official isos at https://ubuntu.com/download/ | |
files: | | |
/tmp/artifacts/ubuntu-*/ubuntu-rootfs-* |