From 758b2741ada431af33287d013a9809beddbb96b1 Mon Sep 17 00:00:00 2001 From: Thayol Date: Wed, 20 May 2026 21:10:58 +0200 Subject: [PATCH] Improve output for Actions --- .gitea/workflows/build.yaml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index f37e89a..42e3a7b 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -8,18 +8,27 @@ jobs: runs-on: fedora-latest steps: - name: Install tools - run: dnf install -y git buildah + run: | + set -ex + dnf install -y git buildah - name: Checkout - run: git clone ${{ gitea.server_url }}/${{ gitea.repository }} . + run: | + set -ex + git clone ${{ gitea.server_url }}/${{ gitea.repository }} . - name: Set registry host - run: echo "REGISTRY_HOST=$(echo ${{ gitea.server_url }} | sed 's|https\?://||')" >> "$GITHUB_ENV" + run: | + set -ex + 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 . + run: | + set -ex + buildah bud -t ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest . - name: Push image run: | - buildah login -u ${{ gitea.actor }} -p ${{ secrets.GITEA_TOKEN }} ${{ env.REGISTRY_HOST }} + set -ex + buildah login -u ${{ gitea.actor }} -p ${{ secrets.GITEA_TOKEN }} ${{ env.server_url }} buildah push ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest