Refactored pipeline and manifest to use cluster dns to access docker registry

This commit is contained in:
Khwezi
2025-10-12 13:56:40 +02:00
parent ed06de7f7c
commit e62773ad16
2 changed files with 6 additions and 7 deletions

View File

@@ -12,7 +12,8 @@ steps:
image: drone/git
commands:
# - git clone https://gitea.apps.mngoma.lab/mngomalab/sampleapi.git .
- git clone http://gitea-server.gitea.svc.cluster.local/mngomalab/sampleapi.git .
# - git clone http://gitea-server.gitea.svc.cluster.local/mngomalab/sampleapi.git .
- git clone http://gitea-server.gitea.svc.cluster.local:3000/mngomalab/sampleapi.git .
- git checkout $DRONE_COMMIT
# dotnet restore
@@ -51,8 +52,7 @@ steps:
settings:
skip_verify: true
commands:
# - git clone https://gitea.apps.mngoma.lab/mngomalab/sampleapi.git .
- git clone http://gitea-server.gitea.svc.cluster.local/mngomalab/sampleapi.git .
- git clone http://gitea-server.gitea.svc.cluster.local:3000/mngomalab/sampleapi.git .
- git checkout $DRONE_COMMIT
# dotnet publish
@@ -92,14 +92,13 @@ steps:
settings:
skip_verify: true
commands:
# - git clone https://gitea.apps.mngoma.lab/mngomalab/sampleapi.git .
- git clone http://gitea-server.gitea.svc.cluster.local/mngomalab/sampleapi.git .
- git clone http://gitea-server.gitea.svc.cluster.local:3000/mngomalab/sampleapi.git .
- git checkout $DRONE_COMMIT
- name: deploy
image: danielgormly/drone-plugin-kube:0.0.1
settings:
template: ./manifests/deploy-app.yml
template: ./manifests/deploy.yml
ca:
from_secret: kube_ca_cert
server: https://lead:6443