runner-images/.forgejo/workflows/build-fedora-40.yml

40 lines
1.4 KiB
YAML
Raw Normal View History

2024-07-13 11:30:59 +00:00
$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"
2024-07-13 11:30:59 +00:00
schedule:
- cron: "0 0 * * 3" # Every Thursday 00:00
jobs:
build:
runs-on: linux-lg
container:
image: fedora:40
2024-07-13 11:35:20 +00:00
steps:
- name: Install Tools
2024-07-13 14:01:08 +00:00
run: 'dnf install -y --setopt install_weak_deps=False nodejs git buildah qemu-user-static qemu-user-binfmt fuse-overlayfs --exclude container-selinux'
2024-07-13 11:35:20 +00:00
- name: Checkout
uses: actions/checkout@v3
- name: Build Images
run: |
2024-07-13 11:40:20 +00:00
cd fedora-40 && \
2024-07-13 13:24:44 +00:00
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 \
2024-07-13 12:49:43 +00:00
--manifest code.lightstands.xyz/standcoded/fedora:40 .
2024-07-13 13:50:13 +00:00
env:
2024-07-13 13:57:33 +00:00
BUILDAH_ISOLATION: chroot
2024-07-13 11:35:20 +00:00
- 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
2024-07-13 11:30:59 +00:00