ajuste no drone.yml
This commit is contained in:
parent
44641a9115
commit
c32e5a0d96
2 changed files with 2 additions and 13 deletions
|
|
@ -8,20 +8,16 @@ steps:
|
|||
# ---------------------------------------------------------------
|
||||
- name: build-and-push-backend
|
||||
image: plugins/docker:latest
|
||||
|
||||
settings:
|
||||
registry: in.gohorsejobs.com
|
||||
repo: in.gohorsejobs.com/gohorsejobs/gohorsejobs-backend
|
||||
tags:
|
||||
- latest
|
||||
|
||||
context: backend
|
||||
dockerfile: backend/Dockerfile
|
||||
|
||||
insecure: true
|
||||
insecure_skip_verify: true
|
||||
debug: true
|
||||
|
||||
username:
|
||||
from_secret: HARBOR_USERNAME
|
||||
password:
|
||||
|
|
@ -32,7 +28,6 @@ steps:
|
|||
# ---------------------------------------------------------------
|
||||
- name: deploy-backend
|
||||
image: bitnami/kubectl:latest
|
||||
|
||||
environment:
|
||||
KUBERNETES_SERVER:
|
||||
from_secret: K3S_SERVER
|
||||
|
|
@ -42,10 +37,8 @@ steps:
|
|||
from_secret: K3S_CLIENT_CERT
|
||||
KUBERNETES_CLIENT_KEY:
|
||||
from_secret: K3S_CLIENT_KEY
|
||||
|
||||
commands:
|
||||
- mkdir -p ~/.kube
|
||||
|
||||
- |
|
||||
cat <<EOF > ~/.kube/config
|
||||
apiVersion: v1
|
||||
|
|
@ -68,7 +61,6 @@ steps:
|
|||
namespace: gohorsejobs
|
||||
current-context: drone-context
|
||||
EOF
|
||||
|
||||
- echo "Deploying backend..."
|
||||
- kubectl apply -f k8s/backend-deployment.yaml
|
||||
- kubectl apply -f k8s/backend-service.yaml
|
||||
|
|
@ -19,13 +19,10 @@ spec:
|
|||
- name: backend
|
||||
image: in.gohorsejobs.com/gohorsejobs/gohorsejobs-backend:latest
|
||||
imagePullPolicy: Always
|
||||
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
|
||||
env:
|
||||
- name: NODE_ENV
|
||||
value: "production"
|
||||
|
||||
imagePullSecrets:
|
||||
- name: harbor-registry
|
||||
Loading…
Reference in a new issue