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

41 lines
1.4 KiB
YAML
Raw Normal View History

2024-07-13 19:30:59 +08:00
$schema: https://github.com/SchemaStore/schemastore/raw/master/src/schemas/json/github-workflow.json
on:
push:
branches: ['master']
paths:
- "fedora-40/**"
2024-07-14 14:33:29 +08:00
- "fedora-40-minimal/**"
2024-07-13 19:30:59 +08:00
- "shared/**"
- ".forgejo/workflows/build-fedora-40.yml"
2024-07-13 19:30:59 +08:00
schedule:
- cron: "0 0 * * 3" # Every Thursday 00:00
jobs:
build:
runs-on: linux-lg
container:
2024-07-14 16:14:21 +08:00
image: code.lightstands.xyz/standcoded/fedora:40
2024-07-13 19:35:20 +08:00
steps:
- name: Checkout
uses: actions/checkout@v3
2024-11-28 18:11:07 +08:00
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version-file: 'package.json'
2024-07-14 14:33:29 +08:00
- name: Fulfill Package Manager Cache
run: dnf makecache -y --releasever 40
- name: Sign in to Image Index
2024-07-14 17:01:22 +08:00
run: buildah login code.lightstands.xyz --username ${{ env.GITHUB_ACTOR }} --password ${{ secrets.PUBLICATION_TOKEN }}
2024-07-14 14:33:29 +08:00
- name: Build Minimal Images
2024-11-28 18:11:07 +08:00
run: DNF_CACHE_PATH=/var/cache/dnf bun shared/build-image.ts code.lightstands.xyz/standcoded/fedora-minimal:40 fedora-40-minimal aarch64
- name: Push Minimal Images
run: buildah manifest push code.lightstands.xyz/standcoded/fedora-minimal:40 --all
- name: Build Complete Images
2024-11-28 18:11:07 +08:00
run: DNF_CACHE_PATH=/var/cache/dnf bun shared/build-image.ts code.lightstands.xyz/standcoded/fedora:40 fedora-40 aarch64
- name: Push Complete Images
run: buildah manifest push code.lightstands.xyz/standcoded/fedora:40 --all
2024-07-13 19:30:59 +08:00