ajuste no drone.yml
This commit is contained in:
parent
d0f7884611
commit
c5b31e7123
1 changed files with 12 additions and 4 deletions
16
.drone.yml
16
.drone.yml
|
|
@ -3,7 +3,17 @@ type: kubernetes
|
|||
name: deploy-backend
|
||||
|
||||
steps:
|
||||
# Step SEPARADO apenas para o docker login no Harbor
|
||||
- name: debug-infisical-vars
|
||||
image: alpine:3
|
||||
environment:
|
||||
HARBOR_USERNAME:
|
||||
from_secret: HARBOR_USERNAME
|
||||
HARBOR_PASSWORD:
|
||||
from_secret: HARBOR_PASSWORD
|
||||
commands:
|
||||
- echo "USER: $HARBOR_USERNAME"
|
||||
- echo "PWLEN: $(echo -n $HARBOR_PASSWORD | wc -c)"
|
||||
|
||||
- name: docker-login-harbor
|
||||
image: docker:24
|
||||
environment:
|
||||
|
|
@ -14,7 +24,6 @@ steps:
|
|||
commands:
|
||||
- echo "$HARBOR_PASSWORD" | docker login in.gohorsejobs.com -u "$HARBOR_USERNAME" --password-stdin
|
||||
|
||||
# BUILD & PUSH para Harbor usando plugins/docker (segue padrão)
|
||||
- name: build-and-push-backend
|
||||
image: plugins/docker:latest
|
||||
environment:
|
||||
|
|
@ -29,12 +38,11 @@ steps:
|
|||
- latest
|
||||
context: backend
|
||||
dockerfile: backend/Dockerfile
|
||||
insecure: true # Use apenas se necessário (HTTP or self-signed)
|
||||
insecure: true
|
||||
insecure_skip_verify: true
|
||||
debug: true
|
||||
mtu: 0
|
||||
|
||||
# DEPLOY no K3S
|
||||
- name: deploy-backend
|
||||
image: bitnami/kubectl:latest
|
||||
environment:
|
||||
|
|
|
|||
Loading…
Reference in a new issue