fix pipeline
This commit is contained in:
@@ -11,13 +11,13 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
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: |
|
config-inline: |
|
||||||
[registry."${{ gitea.server_url }}"]
|
[registry."kode.sadateknologi.site"]
|
||||||
http = true
|
http = false
|
||||||
insecure = true
|
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
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@@ -28,8 +28,8 @@ jobs:
|
|||||||
- name: Login to Gitea Registry
|
- name: Login to Gitea Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ gitea.server_url }} # e.g., gitea.example.com or 192.168.1.100:3000
|
registry: kode.sadateknologi.site
|
||||||
username: ${{ gitea.repository_owner }}
|
username: ${{ gitea.actor }} # Fixed: Use gitea.actor instead of repository_owner
|
||||||
password: ${{ secrets.GITEA_TOKEN }}
|
password: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push to Gitea Registry
|
- name: Build and push to Gitea Registry
|
||||||
@@ -37,11 +37,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
# Pull base images from Docker Hub (automatically authenticated)
|
|
||||||
# Push final image to Gitea Registry
|
|
||||||
tags: |
|
tags: |
|
||||||
${{ gitea.server_url }}/${{ gitea.repository_owner }}/kulakpos_web:latest
|
kode.sadateknologi.site/${{ gitea.repository }}/kulakpos_web:latest
|
||||||
${{ gitea.server_url }}/${{ gitea.repository_owner }}/kulakpos_web:${{ github.sha }}
|
kode.sadateknologi.site/${{ gitea.repository }}/kulakpos_web:${{ gitea.sha }}
|
||||||
# Optional: Add cache from Docker Hub to speed up builds
|
# Optional caching (remove if not needed)
|
||||||
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/kulakpos_web:buildcache
|
# cache-from: type=registry,ref=kode.sadateknologi.site/${{ gitea.repository }}/kulakpos_web:buildcache
|
||||||
cache-to: type=registry,ref=${{ gitea.server_url }}/${{ gitea.repository_owner }}/kulakpos_web:buildcache,mode=max
|
# cache-to: type=registry,ref=kode.sadateknologi.site/${{ gitea.repository }}/kulakpos_web:buildcache,mode=max
|
||||||
Reference in New Issue
Block a user