Files
fedora-runner/.gitea/workflows/build.yaml
T
thayol 2465d8ab47
Build Runner Image / build (push) Failing after 43s
Fix registry host
2026-05-20 21:07:17 +02:00

26 lines
751 B
YAML

name: Build Runner Image
on:
push:
branches: [master]
jobs:
build:
runs-on: fedora-latest
steps:
- name: Install tools
run: dnf install -y git buildah
- name: Checkout
run: git clone ${{ gitea.server_url }}/${{ gitea.repository }} .
- name: Set registry host
run: echo "REGISTRY_HOST=$(echo ${{ gitea.server_url }} | sed 's|https\?://||')" >> "$GITHUB_ENV"
- name: Build image
run: buildah bud -t ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest .
- name: Push image
run: |
buildah login -u ${{ gitea.actor }} -p ${{ secrets.GITEA_TOKEN }} ${{ gitea.server_url }}
buildah push ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest