name: Build and Push to Gitea Registry on: [push] jobs: build-and-push: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: # Your Gitea uses HTTPS (from your curl output), so no http/insecure needed config-inline: | [registry."kode.sadateknologi.site"] http = false insecure = false # 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: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} # Login to Gitea Registry for pushing - name: Login to Gitea Registry uses: docker/login-action@v3 with: 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 uses: docker/build-push-action@v5 with: context: . push: true tags: | 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