ajuste no drone.yml

This commit is contained in:
Marcus Bohessef 2025-12-11 22:39:34 -03:00
parent 98cf247e3b
commit 40df003e67

View file

@ -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