fix pipeline
All checks were successful
Build and Push to Gitea Registry / build-and-push (push) Successful in 1m54s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s

This commit is contained in:
eko
2026-03-16 06:24:32 +07:00
parent c5332f4e23
commit 0dc65d0e0e

View File

@@ -11,35 +11,31 @@ jobs:
- 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)
# Login to Docker Hub (optional)
- 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
# Login to Gitea Registry with your custom secret name
- 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 }}
username: ${{ gitea.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} # Using custom name
- name: Build and push to Gitea Registry
- name: Build and push
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
kode.sadateknologi.site/${{ gitea.repository_owner }}/kulakpos_web:latest
kode.sadateknologi.site/${{ gitea.repository_owner }}/kulakpos_web:${{ gitea.sha }}