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
|
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
|
||||||
|
|||||||
@@ -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:
|
||||||
Reference in New Issue
Block a user