Some checks failed
Build containers / Build and push image (asahi-cosmic, 43) (push) Failing after 1h25m48s
66 lines
1.9 KiB
YAML
66 lines
1.9 KiB
YAML
name: Build containers
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches: ["main"]
|
|
push:
|
|
branches: ["main"]
|
|
|
|
jobs:
|
|
build_push:
|
|
name: Build and push image
|
|
runs-on: wesley-arm
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
image: [asahi-cosmic]
|
|
version: [43] #Build current stable,next stable/rawhide (if not branched)
|
|
container:
|
|
image: "quay.io/fedora-ostree-desktops/buildroot:${{ matrix.version }}"
|
|
options: "--security-opt=label=disable --privileged --user 0:0 --device=/dev/fuse --volume /:/run/host:rw"
|
|
steps:
|
|
|
|
- name: Install latest rpm-ostree package from testing repos
|
|
run: |
|
|
dnf upgrade -y --enablerepo=updates-testing --refresh rpm-ostree
|
|
dnf install -y nodejs
|
|
mkdir -p ~/.docker
|
|
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in
|
|
uses: redhat-actions/podman-login@v1
|
|
with:
|
|
registry: git.plabble.org
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
auth_file_path: /tmp/auth.json
|
|
|
|
- name: Build rootfs
|
|
run: |
|
|
sudo ./builder.sh asahi-cosmic 43
|
|
|
|
- name: Build container
|
|
id: build
|
|
uses: job79/buildah-build@65b3793a1370c1ccd74a5c0d090d70eb9637a4ef
|
|
with:
|
|
image: misthios/${{ matrix.image }}
|
|
tags: ${{ matrix.version }}
|
|
containerfiles: ./Containerfile
|
|
build-args: IMAGE=${{ matrix.image }}
|
|
|
|
- name: Push
|
|
uses: redhat-actions/push-to-registry@v2
|
|
with:
|
|
image: ${{ steps.build.outputs.image }}
|
|
tags: ${{ steps.build.outputs.tags }}
|
|
registry: git.plabble.org
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
extra-args: |
|
|
--compression-format=zstd
|
|
--compression-level=12
|