From c5332f4e236d534849f05426b842814f3ae185d8 Mon Sep 17 00:00:00 2001 From: eko Date: Mon, 16 Mar 2026 06:13:35 +0700 Subject: [PATCH] fix pipeline --- .gitea/workflows/pipeline.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml index 8774a3f..e6576b8 100644 --- a/.gitea/workflows/pipeline.yml +++ b/.gitea/workflows/pipeline.yml @@ -11,13 +11,13 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: - # If your Gitea instance uses HTTP (not HTTPS), add this + # Your Gitea uses HTTPS (from your curl output), so no http/insecure needed config-inline: | - [registry."${{ gitea.server_url }}"] - http = true - insecure = true + [registry."kode.sadateknologi.site"] + http = false + insecure = false - # Login to Docker Hub for pulling base images + # Login to Docker Hub for pulling base images (optional if all base images are public) - name: Login to Docker Hub uses: docker/login-action@v3 with: @@ -28,8 +28,8 @@ jobs: - name: Login to Gitea Registry uses: docker/login-action@v3 with: - registry: ${{ gitea.server_url }} # e.g., gitea.example.com or 192.168.1.100:3000 - username: ${{ gitea.repository_owner }} + registry: kode.sadateknologi.site + username: ${{ gitea.actor }} # Fixed: Use gitea.actor instead of repository_owner password: ${{ secrets.GITEA_TOKEN }} - name: Build and push to Gitea Registry @@ -37,11 +37,9 @@ jobs: with: context: . push: true - # Pull base images from Docker Hub (automatically authenticated) - # Push final image to Gitea Registry tags: | - ${{ gitea.server_url }}/${{ gitea.repository_owner }}/kulakpos_web:latest - ${{ gitea.server_url }}/${{ gitea.repository_owner }}/kulakpos_web:${{ github.sha }} - # Optional: Add cache from Docker Hub to speed up builds - cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/kulakpos_web:buildcache - cache-to: type=registry,ref=${{ gitea.server_url }}/${{ gitea.repository_owner }}/kulakpos_web:buildcache,mode=max \ No newline at end of file + kode.sadateknologi.site/${{ gitea.repository }}/kulakpos_web:latest + kode.sadateknologi.site/${{ gitea.repository }}/kulakpos_web:${{ gitea.sha }} + # Optional caching (remove if not needed) + # cache-from: type=registry,ref=kode.sadateknologi.site/${{ gitea.repository }}/kulakpos_web:buildcache + # cache-to: type=registry,ref=kode.sadateknologi.site/${{ gitea.repository }}/kulakpos_web:buildcache,mode=max \ No newline at end of file