From f5334499263c92bdcf3d596ccb2b43f19d7758a0 Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Tue, 19 Aug 2025 21:23:11 +0200 Subject: [PATCH] debug --- .gitea/workflows/build-oci.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build-oci.yaml b/.gitea/workflows/build-oci.yaml index 9fc2949..bddcc11 100644 --- a/.gitea/workflows/build-oci.yaml +++ b/.gitea/workflows/build-oci.yaml @@ -24,10 +24,10 @@ jobs: run: | echo GT ${{ secrets.GITHUB_TOKEN }} echo GH ${{ secrets.GITHUB_TOKEN }} - echo actore ${{ gitea.actor }} + test -z "${{ secrets.GITEA_TOKEN}}" && echo "GITEA_TOKEN is empty" + test -z "${{ secrets.GITHUB_TOKEN}}" && echo "GITHUB_TOKEN is empty" - - name: Checkout repository - uses: actions/checkout@v4 + echo actore ${{ gitea.actor }} - name: Install Buildah run: |- @@ -39,6 +39,12 @@ jobs: else echo "Buildah already installed" fi + - name: Login to repository + run: | + buildah login $REGISTRY -u ${{ gitea.actor }} -p ${{ secrets.GITEA_TOKEN }} + + - name: Checkout repository + uses: actions/checkout@v4 - name: Build and tag run: |- @@ -48,6 +54,5 @@ jobs: - name: Push image run: |- - buildah login $REGISTRY -u ${{ gitea.actor }} -p ${{ secrets.GITHUB_TOKEN }} buildah push $REGISTRY/${IMAGE_NAME,,}:$VERSION buildah push $REGISTRY/${IMAGE_NAME,,}:latest