Skip to content

Commit

Permalink
Merge branch 'release/ubuntu-0.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Jul 8, 2024
2 parents 680f8cb + c5c3b6a commit 81a8d4b
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 2 deletions.
56 changes: 55 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
fetch-depth: 0

- name: Setup IcePAK
uses: upmaru/icepak@v0
uses: upmaru/icepak@v1
with:
alpine: v3.19
arch: ${{matrix.os.arch}}
Expand All @@ -53,3 +53,57 @@ jobs:
env:
POLAR_AUTH_TOKEN: ${{ secrets.POLAR_AUTH_TOKEN }}
POLAR_ENDPOINT: ${{ vars.POLAR_ENDPOINT }}
TESTING_IMAGE_SERVER: ${{ secrets.TESTING_IMAGE_SERVER }}

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{matrix.release.distro}}-${{matrix.os.arch}}-${{matrix.release.version}}-${{github.run_number}}
path: |
${{ github.workspace }}/incus.tar.xz
${{ github.workspace }}/disk.qcow2
${{ github.workspace }}/rootfs.squashfs
retention-days: 5

test:
needs: build
strategy:
max-parallel: 1
fail-fast: false
matrix:
release: [
{distro: "ubuntu", version: "jammy", checks: "ipv4,ipv6"},
{distro: "ubuntu", version: "noble", checks: "ipv4,ipv6"}
]
os: [
{arch: "aarch64", builder: "ubicloud-standard-2-arm"},
{arch: "x86_64", builder: "warp-ubuntu-latest-x64-2x"}
]

runs-on: ${{matrix.os.builder}}
env:
ImageOS: ubuntu22
steps:
- uses: actions/download-artifact@v4
with:
name: ${{matrix.release.distro}}-${{matrix.os.arch}}-${{matrix.release.version}}-${{github.run_number}}

- name: Setup IcePAK
uses: upmaru/icepak@v1
with:
alpine: v3.19
arch: ${{matrix.os.arch}}

- name: Generate Serial
id: generate-serial
run: |
echo "serial=$(date +'%Y%m%d')-$GITHUB_RUN_NUMBER" >> $GITHUB_OUTPUT
- name: Test
run: |
icepak validate --serial ${{ steps.generate-serial.outputs.serial }} --os ${{matrix.release.distro}} --arch ${{matrix.os.arch}} --release ${{matrix.release.version}} --variant default --checks ${{matrix.release.checks}}
shell: alpine.sh {0}
env:
POLAR_AUTH_TOKEN: ${{ secrets.POLAR_AUTH_TOKEN }}
POLAR_ENDPOINT: ${{ vars.POLAR_ENDPOINT }}
TESTING_IMAGE_SERVER: ${{ secrets.TESTING_IMAGE_SERVER }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Configured to build the following releases for 2 architectures

| OS | Releases | Architectures | Link |
| ----------------- | ----------------- | ---------------- | ----------------- |
| ![alpine](https://github.com/upmaru/opsmaru-images/actions/workflows/alpine.yml/badge.svg) | `edge` `3.19` `3.18` `3.17` `3.16` | `aarch64` `x86_64` | [View](https://images.opsmaru.com/?os=alpine) |
| ![alpine](https://github.com/upmaru/opsmaru-images/actions/workflows/alpine.yml/badge.svg) | `edge` `3.20` `3.19` `3.18` `3.17` `3.16` | `aarch64` `x86_64` | [View](https://images.opsmaru.com/?os=alpine) |
| ![debian](https://github.com/upmaru/opsmaru-images/actions/workflows/debian.yml/badge.svg) | `bookworm` `trixie` | `aarch64` `x86_64` | [View](https://images.opsmaru.com/?os=debian) |
| ![ubuntu](https://github.com/upmaru/opsmaru-images/actions/workflows/ubuntu.yml/badge.svg) | `jammy` `noble` | `aarch64` `x86_64` | [View](https://images.opsmaru.com/?os=ubuntu) |
| ![centos](https://github.com/upmaru/opsmaru-images/actions/workflows/centos.yml/badge.svg) | `8-Stream` `9-Stream` | `aarch64` `x86_64` | [View](https://images.opsmaru.com/?os=centos) |
Expand Down

0 comments on commit 81a8d4b

Please sign in to comment.