Fix registry host
Build Runner Image / build (push) Failing after 43s

This commit is contained in:
2026-05-20 21:07:17 +02:00
parent ee45775b13
commit 2465d8ab47
+5 -9
View File
@@ -8,22 +8,18 @@ jobs:
runs-on: fedora-latest
steps:
- name: Install tools
run: dnf install -y git nodejs npm curl wget jq tar xz findutils which gcc make
run: dnf install -y git buildah
- name: Checkout
run: git clone ${{ gitea.server_url }}/${{ gitea.repository }} .
- name: List directory contents
run: ls -lah
- name: Check buildah help
run: buildah --help
- name: Set registry host
run: echo "REGISTRY_HOST=$(echo ${{ gitea.server_url }} | sed 's|https\?://||')" >> "$GITHUB_ENV"
- name: Build image
run: buildah bud -t ${{ gitea.server_url }}/${{ gitea.repository }}:latest .
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 ${{ gitea.server_url }}/${{ gitea.repository }}:latest
buildah push ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest