runner-images/.forgejo/workflows/build-fedora-40.yml
thislight 008410086a
Some checks failed
/ build (push) Failing after 1m3s
ci: remove the amd64 build for now
2024-07-13 22:04:42 +08:00

39 lines
1.4 KiB
YAML

$schema: https://github.com/SchemaStore/schemastore/raw/master/src/schemas/json/github-workflow.json
on:
push:
branches: ['master']
paths:
- "fedora-40/**"
- "shared/**"
- ".forgejo/workflows/build-fedora-40.yml"
schedule:
- cron: "0 0 * * 3" # Every Thursday 00:00
jobs:
build:
runs-on: linux-lg
container:
image: fedora:40
steps:
- name: Install Tools
run: 'dnf install -y --setopt install_weak_deps=False nodejs git buildah qemu-user-static qemu-user-binfmt fuse-overlayfs --exclude container-selinux'
- name: Checkout
uses: actions/checkout@v3
- name: Build Images
run: |
cd fedora-40 && \
buildah --storage-opt mount_program=/usr/bin/fuse-overlayfs --cgroup-manager=cgroupfs manifest create code.lightstands.xyz/standcoded/fedora:40 && \
buildah --storage-opt mount_program=/usr/bin/fuse-overlayfs --cgroup-manager=cgroupfs build --arch aarch64 \
--pid=host --ipc=host --network=host --userns=host --uts=host --squash \
--manifest code.lightstands.xyz/standcoded/fedora:40 .
env:
BUILDAH_ISOLATION: chroot
- name: Push Images
run: |
buildah login code.lightstands.xyz \
--username ${{ env.GITHUB_ACTOR }} --password ${{ env.GITHUB_TOKEN }}
buildah manifest push code.lightstands.xyz/standcoded/fedora:40 --all