Refactored pipeline and manifest to use cluster dns to access docker registry
This commit is contained in:
11
.drone.yml
11
.drone.yml
@@ -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
|
||||
|
||||
@@ -5,7 +5,7 @@ metadata:
|
||||
name: experiments
|
||||
labels:
|
||||
name: experiments
|
||||
---
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
Reference in New Issue
Block a user