Files
fedora-runner/.gitea/workflows/build.yaml
T
thayol e8678872dd
Build Runner Image / build (push) Failing after 23s
Remove output echo
2026-05-20 21:26:56 +02:00

47 lines
1.2 KiB
YAML

name: Build Runner Image
on:
push:
branches: [master]
jobs:
build:
runs-on: fedora-latest
steps:
- name: Test 1
run: |
echo "Can you see this?"
- name: Install tools (logged)
run: |
dnf install -y --quiet git buildah > /tmp/dnf.log 2>&1 || true
- name: Show install log
run: |
cat /tmp/dnf.log
which git
which buildah
- name: Test 2
run: |
echo "Can you see this?"
which git
which buildah
- name: Set registry host
run: |
echo "REGISTRY_HOST=$(echo ${{ gitea.server_url }} | sed 's|https\?://||')" >> "$GITEA_ENV" - name: Debug
- name: Checkout
run: |
git clone ${{ gitea.server_url }}/${{ gitea.repository }} .
ls -la
- name: Build image
run: |
buildah bud -t ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest . 2>&1
- name: Push image
run: |
buildah login -u ${{ gitea.actor }} -p ${{ secrets.GITEA_TOKEN }} ${{ env.REGISTRY_HOST }} 2>&1
buildah push ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest 2>&1