Skip to content

Commit

Permalink
Merge pull request #32 from Ultramarine-Linux/bump-41
Browse files Browse the repository at this point in the history
chore: set UM version to 41
  • Loading branch information
madonuko authored Aug 18, 2024
2 parents 2f466f6 + 7bdfaf5 commit 2bbb482
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 66 deletions.
95 changes: 47 additions & 48 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ env:
podman
buildah
katsu
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-40.noarch.rpm
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-40.noarch.rpm
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-41.noarch.rpm
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-41.noarch.rpm
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
on:
push:
branches: [ "um40" ]
branches: ["um41"]
workflow_dispatch:
pull_request:
branches: [ "um40" ]
branches: ["um41"]

jobs:
#### DOCKER ######
Expand All @@ -64,7 +64,7 @@ jobs:
# ubuntu-latest unless we're building aarch64
runs-on: ${{ endsWith(matrix.variant, '-aarch64') && 'arm64' || 'ubuntu-latest' }}
container:
image: ghcr.io/terrapkg/builder:f40
image: ghcr.io/terrapkg/builder:f41
# Pass /dev from host to container
# Very hacky, but it works
# Microsoft/Github, if you're reading this,
Expand Down Expand Up @@ -100,9 +100,9 @@ jobs:
host_arch="arm64"
fi
# tarball katsu-work/chroot then import using podman with tag ghcr.io/ultramarine-linux/ultramarine:40
tar -C katsu-work/chroot -c . | podman import --change='CMD ["/usr/bin/bash"]' - ghcr.io/ultramarine-linux/ultramarine:40 --arch $host_arch
podman save --format oci-archive ghcr.io/ultramarine-linux/ultramarine:40 --output katsu-work/image/katsu.tar.xz
# tarball katsu-work/chroot then import using podman with tag ghcr.io/ultramarine-linux/ultramarine:41
tar -C katsu-work/chroot -c . | podman import --change='CMD ["/usr/bin/bash"]' - ghcr.io/ultramarine-linux/ultramarine:41 --arch $host_arch
podman save --format oci-archive ghcr.io/ultramarine-linux/ultramarine:41 --output katsu-work/image/katsu.tar.xz
popd
- name: Upload Artifact
Expand Down Expand Up @@ -137,58 +137,57 @@ jobs:
run: |
set -x
MANIFEST="ghcr.io/ultramarine-linux/ultramarine"
RELEASE="40"
RELEASE="41"
ls -lR
buildah manifest create $MANIFEST
buildah manifest add $MANIFEST oci-archive:base-base-docker-x86_64-docker/katsu.tar.xz --arch amd64
buildah manifest add $MANIFEST oci-archive:base-base-docker-aarch64-docker/katsu.tar.xz --arch arm64
# also tag as latest
buildah tag $MANIFEST $MANIFEST:latest || :
buildah manifest push --all --format v2s2 $MANIFEST docker://$MANIFEST:$RELEASE
docker-layer:
permissions:
contents: read
packages: write
contents: read
packages: write
runs-on: ubuntu-latest
needs: docker-push
strategy:
fail-fast: true
matrix:
version:
- 40
docker:
- dockerfile: dockerfiles/devtools.dockerfile
image: ghcr.io/ultramarine-linux/ultramarine-devtools
- dockerfile: dockerfiles/gitpod.dockerfile
image: ghcr.io/ultramarine-linux/ultramarine-gitpod
fail-fast: true
matrix:
version:
- 41
docker:
- dockerfile: dockerfiles/devtools.dockerfile
image: ghcr.io/ultramarine-linux/ultramarine-devtools
- dockerfile: dockerfiles/gitpod.dockerfile
image: ghcr.io/ultramarine-linux/ultramarine-gitpod

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build images
uses: docker/build-push-action@v6
with:
context: .
file: ${{ matrix.docker.dockerfile }}
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ matrix.docker.image }}:${{ matrix.version }}
${{ matrix.docker.image }}:latest
build-args: |
RELEASE=${{ matrix.version }}
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build images
uses: docker/build-push-action@v6
with:
context: .
file: ${{ matrix.docker.dockerfile }}
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ matrix.docker.image }}:${{ matrix.version }}
${{ matrix.docker.image }}:latest
build-args: |
RELEASE=${{ matrix.version }}
#### LIVE ISO ####
16 changes: 8 additions & 8 deletions .github/workflows/build-katsu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ env:
podman
buildah
katsu
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-40.noarch.rpm
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-40.noarch.rpm
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-41.noarch.rpm
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-41.noarch.rpm
on:
push:
branches: ["um40"]
branches: ["um41"]
workflow_dispatch:
pull_request:
branches: ["um40"]
branches: ["um41"]

jobs:
#### BASE IMAGES ####
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
variant: xfce/xfce-chromebook
runs-on: ${{ matrix.arch == 'x86_64' && 'ubuntu-latest' || 'arm64' }}
container:
image: ghcr.io/terrapkg/builder:f40
image: ghcr.io/terrapkg/builder:f41
# Pass /dev from host to container
# Very hacky, but it works
# Microsoft/Github, if you're reading this,
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
- xfce/xfce-live
runs-on: ${{ matrix.arch == 'x86_64' && matrix.variant == 'kde/kde-live' && 'x86-64-lg' || matrix.arch == 'x86_64' && 'ubuntu-latest' || 'arm64' }}
container:
image: ghcr.io/terrapkg/builder:f40
image: ghcr.io/terrapkg/builder:f41
# Pass /dev from host to container
# Very hacky, but it works
# Microsoft/Github, if you're reading this,
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
push-image:
runs-on: arm64
container:
image: ghcr.io/terrapkg/builder:f40
image: ghcr.io/terrapkg/builder:f41
environment: production
needs:
- live-iso
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
type=$2
IMAGEDIR=images/$type/ultramarine/40/
IMAGEDIR=images/$type/ultramarine/41/
mkdir -p $IMAGEDIR
filename=$(basename -- "$file")
Expand Down
4 changes: 2 additions & 2 deletions katsu/modules/base/base-disk-aarch64.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
builder: dnf
distro: Ultramarine Linux 40
distro: Ultramarine Linux 41

# users:
# - username: ultramarine
Expand All @@ -13,7 +13,7 @@ import:
- base-disk.yaml

dnf:
releasever: 40
releasever: 41
arch: aarch64
packages:
- ultramarine-release-identity-basic
Expand Down
4 changes: 2 additions & 2 deletions katsu/modules/base/base-disk-x86_64.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
builder: dnf
distro: Ultramarine Linux 40
distro: Ultramarine Linux 41

# users:
# - username: ultramarine
Expand All @@ -13,7 +13,7 @@ import:
- base-disk.yaml

dnf:
releasever: 40
releasever: 41
packages:
- ultramarine-release-identity-basic
- ultramarine-release-basic
Expand Down
2 changes: 1 addition & 1 deletion katsu/modules/base/base-disk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ scripts:
name: Extra configuration for disk images
file: disk-setup.sh
dnf:
releasever: 40
releasever: 41
options:
- --setopt=cachedir=/var/cache/dnf
- --setopt=keepcache=True
Expand Down
4 changes: 2 additions & 2 deletions katsu/modules/base/base-docker-aarch64.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
builder: dnf
distro: Ultramarine Linux 40 Container
distro: Ultramarine Linux 41 Container

import:
- base-docker.yaml

dnf:
releasever: 40
releasever: 41
arch: aarch64
4 changes: 2 additions & 2 deletions katsu/modules/base/base-docker-x86_64.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
builder: dnf
distro: Ultramarine Linux 40 Container
distro: Ultramarine Linux 41 Container

import:
- base-docker.yaml

dnf:
releasever: 40
releasever: 41
arch: x86_64
2 changes: 1 addition & 1 deletion katsu/modules/base/base-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ builder: dnf

dnf:
repodir: repodir/
releasever: 40
releasever: 41
options:
- --setopt=cachedir=/var/cache/dnf
- --setopt=keepcache=True
Expand Down

0 comments on commit 2bbb482

Please sign in to comment.