ajuste no drone.yml
This commit is contained in:
parent
98cf247e3b
commit
40df003e67
1 changed files with 14 additions and 9 deletions
23
.drone.yml
23
.drone.yml
|
|
@ -2,12 +2,12 @@ kind: pipeline
|
|||
type: kubernetes
|
||||
name: deploy-backend
|
||||
|
||||
# ---------------------------------------------
|
||||
# --------------------------------------------------------------------
|
||||
# ETAPA 1 - BUILD E PUSH PARA O HARBOR (PLUGIN DOCKER)
|
||||
# ---------------------------------------------
|
||||
# --------------------------------------------------------------------
|
||||
steps:
|
||||
- name: build-and-push-backend
|
||||
image: plugins/docker
|
||||
image: plugins/docker:latest
|
||||
|
||||
environment:
|
||||
DOCKER_USERNAME:
|
||||
|
|
@ -16,17 +16,22 @@ steps:
|
|||
from_secret: HARBOR_PASSWORD
|
||||
|
||||
settings:
|
||||
repo: in.gohorsejobs.com/gohorsejobs-backend
|
||||
tags: latest
|
||||
registry: in.gohorsejobs.com
|
||||
repo: in.gohorsejobs.com/gohorsejobs/gohorsejobs-backend
|
||||
tags:
|
||||
- latest
|
||||
|
||||
dockerfile: backend/Dockerfile
|
||||
context: backend
|
||||
|
||||
insecure: true
|
||||
insecure_skip_verify: true
|
||||
registry: in.gohorsejobs.com
|
||||
debug: true
|
||||
mtu: 0 # evita bug de stuck push em rede ruim
|
||||
|
||||
# ---------------------------------------------
|
||||
# ETAPA 2 – DEPLOY NO K3S
|
||||
# ---------------------------------------------
|
||||
# --------------------------------------------------------------------
|
||||
# ETAPA 2 – DEPLOY BACKEND NO K3S
|
||||
# --------------------------------------------------------------------
|
||||
- name: deploy-backend
|
||||
image: bitnami/kubectl:latest
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue