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

View File

@@ -5,7 +5,7 @@ metadata:
name: experiments name: experiments
labels: labels:
name: experiments name: experiments
--- ---
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata: