From 2465d8ab47a6c10aa9f46a108a9ba4ebe7d0ce15 Mon Sep 17 00:00:00 2001 From: Thayol Date: Wed, 20 May 2026 21:07:17 +0200 Subject: [PATCH] Fix registry host --- .gitea/workflows/build.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 3e8443d..92647a4 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -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