fix pipeline
This commit is contained in:
@@ -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 }}
|
||||
Reference in New Issue
Block a user