Skip to content

Commit

Permalink
Update build config for debian
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Mar 1, 2024
1 parent 25fa51b commit ef64361
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/alpine.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: 'Alpine'

on:
push:
branches:
- main
schedule:
- cron: '0 0 7,14,21,28 * *'

jobs:
build:
Expand Down Expand Up @@ -32,7 +31,7 @@ jobs:
fetch-depth: 0

- name: Setup IcePAK
uses: upmaru/icepak@develop
uses: upmaru/icepak@v0
with:
alpine: v3.19
arch: ${{matrix.os.arch}}
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/debian.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: 'Debian'

on:
schedule:
- cron: '0 0 7,14,21,28 * *'
push:
branches:
- main

jobs:
build:
Expand All @@ -14,8 +15,8 @@ jobs:
{distro: "debian", version: "sid"}
]
os: [
{arch: "aarch64", builder: "nscloud-ubuntu-22.04-arm64-2x4"},
{arch: "x86_64", builder: "nscloud-ubuntu-22.04-amd64-2x4"}
{arch: "aarch64", builder: "ubicloud-standard-2-arm"},
{arch: "x86_64", builder: "warp-ubuntu-latest-x64-2x"}
]

runs-on: ${{matrix.os.builder}}
Expand All @@ -41,11 +42,13 @@ jobs:
- name: Build Image
run: |
sudo apt-get install debootstrap btrfs-progs dosfstools qemu-utils gdisk -y
sudo ~/go/bin/distrobuilder build-incus images/${{matrix.release.distro}}.yml rootfs -o image.serial=${{ steps.generate-serial.outputs.serial }} -o image.architecture=${{matrix.os.arch}} -o image.release=${{matrix.release.version}} -o source.url="http://ftp.us.debian.org/debian"
sudo ~/go/bin/distrobuilder build-dir images/${{matrix.release.distro}}.yml rootfs -o image.serial=${{ steps.generate-serial.outputs.serial }} -o image.architecture=${{matrix.os.arch}} -o image.release=${{matrix.release.version}} -o source.url="http://ftp.us.debian.org/debian"
sudo ~/go/bin/distrobuilder pack-incus images/${{matrix.release.distro}}.yml rootfs -o image.serial=${{ steps.generate-serial.outputs.serial }} -o image.architecture=${{matrix.os.arch}} -o image.release=${{matrix.release.version}} -o source.url="http://ftp.us.debian.org/debian"
sudo ~/go/bin/distrobuilder pack-incus images/${{matrix.release.distro}}.yml rootfs --vm -o image.serial=${{ steps.generate-serial.outputs.serial }} -o image.architecture=${{matrix.os.arch}} -o image.release=${{matrix.release.version}} -o source.url="http://ftp.us.debian.org/debian"
- name: Push
run: |
icepak push --path rootfs --serial ${{ steps.generate-serial.outputs.serial }} --os ${{matrix.release.distro}} --arch ${{matrix.os.arch}} --release ${{matrix.release.version}} --variant default
icepak push --serial ${{ steps.generate-serial.outputs.serial }} --os ${{matrix.release.distro}} --arch ${{matrix.os.arch}} --release ${{matrix.release.version}} --variant default
shell: alpine.sh {0}
env:
POLAR_AUTH_TOKEN: ${{ secrets.POLAR_AUTH_TOKEN }}
Expand Down

0 comments on commit ef64361

Please sign in to comment.