fix pipeline
This commit is contained in:
@@ -11,35 +11,31 @@ 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:
|
||||||
# Your Gitea uses HTTPS (from your curl output), so no http/insecure needed
|
|
||||||
config-inline: |
|
config-inline: |
|
||||||
[registry."kode.sadateknologi.site"]
|
[registry."kode.sadateknologi.site"]
|
||||||
http = false
|
http = false
|
||||||
insecure = 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
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
# Login to Gitea Registry for pushing
|
# Login to Gitea Registry with your custom secret name
|
||||||
- name: Login to Gitea Registry
|
- name: Login to Gitea Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: kode.sadateknologi.site
|
registry: kode.sadateknologi.site
|
||||||
username: ${{ gitea.actor }} # Fixed: Use gitea.actor instead of repository_owner
|
username: ${{ gitea.repository_owner }}
|
||||||
password: ${{ secrets.GITEA_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }} # Using custom name
|
||||||
|
|
||||||
- name: Build and push to Gitea Registry
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
kode.sadateknologi.site/${{ gitea.repository }}/kulakpos_web:latest
|
kode.sadateknologi.site/${{ gitea.repository_owner }}/kulakpos_web:latest
|
||||||
kode.sadateknologi.site/${{ gitea.repository }}/kulakpos_web:${{ gitea.sha }}
|
kode.sadateknologi.site/${{ gitea.repository_owner }}/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
|
|
||||||
Reference in New Issue
Block a user