# 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"