From 8e82f3b6a263279b0a0730def60975548345b539 Mon Sep 17 00:00:00 2001 From: "Krivopolenov, Artemiy" Date: Sun, 18 Jan 2026 19:26:19 +0100 Subject: [PATCH 01/12] more debug info --- .gitea/workflows/build-container.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/build-container.yaml b/.gitea/workflows/build-container.yaml index bc0377e..731af3d 100644 --- a/.gitea/workflows/build-container.yaml +++ b/.gitea/workflows/build-container.yaml @@ -35,6 +35,9 @@ jobs: steps: - name: Debug network and DNS run: | + echo "=== /data/config.yaml contents ===" + cat /data/config.yaml + echo "" echo "=== /etc/hosts contents ===" cat /etc/hosts echo "" From 03bcf313cabbc73ffe80d65d675f4751af06442e Mon Sep 17 00:00:00 2001 From: "Krivopolenov, Artemiy" Date: Sun, 18 Jan 2026 19:29:38 +0100 Subject: [PATCH 02/12] env var debug --- .gitea/workflows/build-container.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-container.yaml b/.gitea/workflows/build-container.yaml index 731af3d..f273dc3 100644 --- a/.gitea/workflows/build-container.yaml +++ b/.gitea/workflows/build-container.yaml @@ -35,8 +35,8 @@ jobs: steps: - name: Debug network and DNS run: | - echo "=== /data/config.yaml contents ===" - cat /data/config.yaml + echo "=== environment variables ===" + env echo "" echo "=== /etc/hosts contents ===" cat /etc/hosts From d2059c39f5262350e6f0caf746980323544e3f0f Mon Sep 17 00:00:00 2001 From: "Krivopolenov, Artemiy" Date: Sun, 18 Jan 2026 19:33:43 +0100 Subject: [PATCH 03/12] more manual debugging --- .gitea/workflows/build-container.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/build-container.yaml b/.gitea/workflows/build-container.yaml index f273dc3..737e08d 100644 --- a/.gitea/workflows/build-container.yaml +++ b/.gitea/workflows/build-container.yaml @@ -47,6 +47,9 @@ jobs: echo "=== Trying to curl gitea by IP ===" curl -v http://172.18.0.6:3000 || true + - name: Add gitea to /etc/hosts + run: echo "172.18.0.6 gitea" | sudo tee -a /etc/hosts + - name: Checkout repository uses: actions/checkout@v4 From 36093517fbfb2e7099e8eacbad15044bae8a2c5f Mon Sep 17 00:00:00 2001 From: "Krivopolenov, Artemiy" Date: Sun, 18 Jan 2026 19:40:51 +0100 Subject: [PATCH 04/12] removing all debug things --- .gitea/workflows/build-container.yaml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/.gitea/workflows/build-container.yaml b/.gitea/workflows/build-container.yaml index 737e08d..813d2f7 100644 --- a/.gitea/workflows/build-container.yaml +++ b/.gitea/workflows/build-container.yaml @@ -24,8 +24,6 @@ on: env: IMAGE_NAME: zola-pwsh-s3 - # Use the host-accessible URL for registry, not the internal Docker hostname - # If your Gitea is only accessible via gitea:3000, you may need to expose it properly REGISTRY: ${{ gitea.server_url }} jobs: @@ -33,23 +31,6 @@ jobs: runs-on: ubuntu-latest steps: - - name: Debug network and DNS - run: | - echo "=== environment variables ===" - env - echo "" - echo "=== /etc/hosts contents ===" - cat /etc/hosts - echo "" - echo "=== Trying to curl gitea by hostname ===" - curl -v http://gitea:3000 || true - echo "" - echo "=== Trying to curl gitea by IP ===" - curl -v http://172.18.0.6:3000 || true - - - name: Add gitea to /etc/hosts - run: echo "172.18.0.6 gitea" | sudo tee -a /etc/hosts - - name: Checkout repository uses: actions/checkout@v4 From 9a9323e0aa7f3c717972d4fe66e658ccb0852dd0 Mon Sep 17 00:00:00 2001 From: "Krivopolenov, Artemiy" Date: Sun, 18 Jan 2026 19:59:43 +0100 Subject: [PATCH 05/12] fixing secret name --- .gitea/workflows/build-container.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build-container.yaml b/.gitea/workflows/build-container.yaml index 813d2f7..63334e2 100644 --- a/.gitea/workflows/build-container.yaml +++ b/.gitea/workflows/build-container.yaml @@ -42,7 +42,7 @@ jobs: with: registry: ${{ env.REGISTRY }} username: ${{ gitea.actor }} - password: ${{ secrets.GITEA_TOKEN }} + password: ${{ secrets.CONTAINER_TOKEN }} - name: Extract metadata for Docker id: meta From 6873df57c7de08c7efebab4c2cebd96fd3cd71e2 Mon Sep 17 00:00:00 2001 From: "Krivopolenov, Artemiy" Date: Sun, 18 Jan 2026 20:05:15 +0100 Subject: [PATCH 06/12] fixing registry name env --- .gitea/workflows/build-container.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-container.yaml b/.gitea/workflows/build-container.yaml index 63334e2..30eccd6 100644 --- a/.gitea/workflows/build-container.yaml +++ b/.gitea/workflows/build-container.yaml @@ -24,11 +24,13 @@ on: env: IMAGE_NAME: zola-pwsh-s3 - REGISTRY: ${{ gitea.server_url }} jobs: build-container: runs-on: ubuntu-latest + env: + # Strip protocol from server URL for registry usage + REGISTRY: ${{ replace(gitea.server_url, 'https://', '') }} steps: - name: Checkout repository From 1c2261ec9983f8fbbd5aedc02ab4d8cec04476f4 Mon Sep 17 00:00:00 2001 From: "Krivopolenov, Artemiy" Date: Sun, 18 Jan 2026 20:08:18 +0100 Subject: [PATCH 07/12] fixing registry url --- .gitea/workflows/build-container.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build-container.yaml b/.gitea/workflows/build-container.yaml index 30eccd6..3e90080 100644 --- a/.gitea/workflows/build-container.yaml +++ b/.gitea/workflows/build-container.yaml @@ -42,7 +42,7 @@ jobs: - name: Login to Gitea Container Registry uses: docker/login-action@v3 with: - registry: ${{ env.REGISTRY }} + registry: https://${{ env.REGISTRY }} username: ${{ gitea.actor }} password: ${{ secrets.CONTAINER_TOKEN }} From a9179191b964dcd5d306b74a37b6bc20198a8fcd Mon Sep 17 00:00:00 2001 From: "Krivopolenov, Artemiy" Date: Sun, 18 Jan 2026 20:11:49 +0100 Subject: [PATCH 08/12] cleaner registry name and url --- .gitea/workflows/build-container.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build-container.yaml b/.gitea/workflows/build-container.yaml index 3e90080..bda1217 100644 --- a/.gitea/workflows/build-container.yaml +++ b/.gitea/workflows/build-container.yaml @@ -24,25 +24,24 @@ on: env: IMAGE_NAME: zola-pwsh-s3 + REGISTRY_URL: ${{ gitea.server_url }} + REGISTRY_HOST: ${{ replace(replace(gitea.server_url, 'https://', ''), 'http://', '') }} jobs: build-container: runs-on: ubuntu-latest - env: - # Strip protocol from server URL for registry usage - REGISTRY: ${{ replace(gitea.server_url, 'https://', '') }} steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up Docker Buildx + - name: Set up Docker Build uses: docker/setup-buildx-action@v3 - name: Login to Gitea Container Registry uses: docker/login-action@v3 with: - registry: https://${{ env.REGISTRY }} + registry: ${{ env.REGISTRY_HOST }} username: ${{ gitea.actor }} password: ${{ secrets.CONTAINER_TOKEN }} @@ -50,7 +49,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ gitea.repository }}/${{ env.IMAGE_NAME }} + images: ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}/${{ env.IMAGE_NAME }} tags: | type=raw,value=latest type=sha,prefix= From 3837466a7a3c5f4e64d1406d8081706d7b2867c9 Mon Sep 17 00:00:00 2001 From: "Krivopolenov, Artemiy" Date: Sun, 18 Jan 2026 20:14:05 +0100 Subject: [PATCH 09/12] cleaner registry name and url one more time with debug --- .gitea/workflows/build-container.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-container.yaml b/.gitea/workflows/build-container.yaml index bda1217..ac07c16 100644 --- a/.gitea/workflows/build-container.yaml +++ b/.gitea/workflows/build-container.yaml @@ -32,6 +32,12 @@ jobs: runs-on: ubuntu-latest steps: + - name: Debug registry variables + run: | + echo "REGISTRY_HOST=${{ env.REGISTRY_HOST }}" + echo "REGISTRY_URL=${{ env.REGISTRY_URL }}" + echo "gitea.server_url=${{ gitea.server_url }}" + - name: Checkout repository uses: actions/checkout@v4 @@ -41,7 +47,7 @@ jobs: - name: Login to Gitea Container Registry uses: docker/login-action@v3 with: - registry: ${{ env.REGISTRY_HOST }} + registry: ${{ env.REGISTRY_URL }} username: ${{ gitea.actor }} password: ${{ secrets.CONTAINER_TOKEN }} From 06355772ed624385626de8d7f29a321de31a3245 Mon Sep 17 00:00:00 2001 From: "Krivopolenov, Artemiy" Date: Sun, 18 Jan 2026 20:19:37 +0100 Subject: [PATCH 10/12] simplified registry host name --- .gitea/workflows/build-container.yaml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build-container.yaml b/.gitea/workflows/build-container.yaml index ac07c16..ad685da 100644 --- a/.gitea/workflows/build-container.yaml +++ b/.gitea/workflows/build-container.yaml @@ -24,20 +24,13 @@ on: env: IMAGE_NAME: zola-pwsh-s3 - REGISTRY_URL: ${{ gitea.server_url }} - REGISTRY_HOST: ${{ replace(replace(gitea.server_url, 'https://', ''), 'http://', '') }} + REGISTRY_HOST: git.dwal.in jobs: build-container: runs-on: ubuntu-latest steps: - - name: Debug registry variables - run: | - echo "REGISTRY_HOST=${{ env.REGISTRY_HOST }}" - echo "REGISTRY_URL=${{ env.REGISTRY_URL }}" - echo "gitea.server_url=${{ gitea.server_url }}" - - name: Checkout repository uses: actions/checkout@v4 @@ -47,7 +40,7 @@ jobs: - name: Login to Gitea Container Registry uses: docker/login-action@v3 with: - registry: ${{ env.REGISTRY_URL }} + registry: ${{ env.REGISTRY_HOST }} username: ${{ gitea.actor }} password: ${{ secrets.CONTAINER_TOKEN }} From 11844e99454ceb202e5d2da6fdf69f823a91da49 Mon Sep 17 00:00:00 2001 From: "Krivopolenov, Artemiy" Date: Sun, 18 Jan 2026 20:42:37 +0100 Subject: [PATCH 11/12] caching disabling --- .gitea/workflows/build-container.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitea/workflows/build-container.yaml b/.gitea/workflows/build-container.yaml index ad685da..ece5e4d 100644 --- a/.gitea/workflows/build-container.yaml +++ b/.gitea/workflows/build-container.yaml @@ -61,5 +61,3 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max From cad40e3c44145a6ace2850de657a711a7316e29d Mon Sep 17 00:00:00 2001 From: "Krivopolenov, Artemiy" Date: Mon, 19 Jan 2026 08:18:52 +0100 Subject: [PATCH 12/12] registry-based caching try --- .gitea/workflows/build-container.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/build-container.yaml b/.gitea/workflows/build-container.yaml index ece5e4d..137f1fa 100644 --- a/.gitea/workflows/build-container.yaml +++ b/.gitea/workflows/build-container.yaml @@ -61,3 +61,5 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + cache-from: type=registry,ref=${{ env.REGISTRY_HOST }}/${{ gitea.repository }}/${{ env.IMAGE_NAME }}:buildcache + cache-to: type=registry,ref=${{ env.REGISTRY_HOST }}/${{ gitea.repository }}/${{ env.IMAGE_NAME }}:buildcache,mode=max