mkosi-based Gitea runner OS and job image
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
33 files changed
+529
No files matched your search
@@ -0,0 +1,28 @@
|
||||
# git-runner job image
|
||||
#
|
||||
# Builds the job image (job/) and pushes it to this Gitea's registry.
|
||||
# Runs on every push, weekly for Fedora updates, and by hand.
|
||||
name: job
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
schedule:
|
||||
- cron: "0 2 * * 0" # weekly (Sunday), picks up Fedora updates
|
||||
workflow_dispatch: # run by hand, e.g. for a CVE
|
||||
|
||||
jobs:
|
||||
job:
|
||||
runs-on: fedora
|
||||
env:
|
||||
IMAGE: git.plabble.org/job79/git-runner-mkosi-job:latest
|
||||
steps:
|
||||
- name: Install tools
|
||||
run: dnf install -yq git-core podman
|
||||
- name: Check out
|
||||
uses: builtin:checkout
|
||||
- name: Build
|
||||
run: podman build -t "$IMAGE" job
|
||||
- name: Log in to the registry
|
||||
run: podman login -u "${{ github.repository_owner }}" --password-stdin git.plabble.org <<<"${{ secrets.GITHUB_TOKEN }}"
|
||||
- name: Push
|
||||
run: podman push --compression-format=zstd:chunked "$IMAGE"
|
||||
Reference in new issue
Block a user