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
|
type: kubernetes
|
||||||
name: deploy-backend
|
name: deploy-backend
|
||||||
|
|
||||||
# ---------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# ETAPA 1 - BUILD E PUSH PARA O HARBOR (PLUGIN DOCKER)
|
# ETAPA 1 - BUILD E PUSH PARA O HARBOR (PLUGIN DOCKER)
|
||||||
# ---------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
steps:
|
steps:
|
||||||
- name: build-and-push-backend
|
- name: build-and-push-backend
|
||||||
image: plugins/docker
|
image: plugins/docker:latest
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
DOCKER_USERNAME:
|
DOCKER_USERNAME:
|
||||||
|
|
@ -16,17 +16,22 @@ steps:
|
||||||
from_secret: HARBOR_PASSWORD
|
from_secret: HARBOR_PASSWORD
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
repo: in.gohorsejobs.com/gohorsejobs-backend
|
registry: in.gohorsejobs.com
|
||||||
tags: latest
|
repo: in.gohorsejobs.com/gohorsejobs/gohorsejobs-backend
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
|
||||||
dockerfile: backend/Dockerfile
|
dockerfile: backend/Dockerfile
|
||||||
context: backend
|
context: backend
|
||||||
|
|
||||||
insecure: true
|
insecure: true
|
||||||
insecure_skip_verify: 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
|
- name: deploy-backend
|
||||||
image: bitnami/kubectl:latest
|
image: bitnami/kubectl:latest
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue