ajuste no drone
This commit is contained in:
parent
839d0a5907
commit
ccdb72038c
1 changed files with 14 additions and 5 deletions
19
.drone.yml
19
.drone.yml
|
|
@ -5,6 +5,9 @@ kind: pipeline
|
||||||
type: kubernetes
|
type: kubernetes
|
||||||
name: deploy-backend-dev
|
name: deploy-backend-dev
|
||||||
|
|
||||||
|
node:
|
||||||
|
type: ci-runner
|
||||||
|
|
||||||
namespace: drone
|
namespace: drone
|
||||||
service_account_name: drone-deployer
|
service_account_name: drone-deployer
|
||||||
|
|
||||||
|
|
@ -15,6 +18,13 @@ trigger:
|
||||||
steps:
|
steps:
|
||||||
- name: build-and-push-backend
|
- name: build-and-push-backend
|
||||||
image: plugins/docker:latest
|
image: plugins/docker:latest
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 500m # Reserva mínima de meia CPU
|
||||||
|
memory: 512Mi # Reserva mínima de RAM
|
||||||
|
limits:
|
||||||
|
cpu: 2000m # Máximo que pode usar (2 núcleos)
|
||||||
|
memory: 2Gi # Máximo de RAM para não dar crash na máquina
|
||||||
settings:
|
settings:
|
||||||
registry: in.gohorsejobs.com
|
registry: in.gohorsejobs.com
|
||||||
repo: in.gohorsejobs.com/gohorsejobsdev/gohorsejobs-backend
|
repo: in.gohorsejobs.com/gohorsejobsdev/gohorsejobs-backend
|
||||||
|
|
@ -27,6 +37,10 @@ steps:
|
||||||
|
|
||||||
- name: build-and-push-backoffice
|
- name: build-and-push-backoffice
|
||||||
image: plugins/docker:latest
|
image: plugins/docker:latest
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m # Step leve, limitamos para não dar picos
|
||||||
|
memory: 128Mi
|
||||||
settings:
|
settings:
|
||||||
registry: in.gohorsejobs.com
|
registry: in.gohorsejobs.com
|
||||||
repo: in.gohorsejobs.com/gohorsejobs-backoffice-dev/backoffice
|
repo: in.gohorsejobs.com/gohorsejobs-backoffice-dev/backoffice
|
||||||
|
|
@ -65,11 +79,6 @@ steps:
|
||||||
STRIPE_PUBLISHABLE_KEY: { from_secret: STRIPE_PUBLISHABLE_KEY_DEV }
|
STRIPE_PUBLISHABLE_KEY: { from_secret: STRIPE_PUBLISHABLE_KEY_DEV }
|
||||||
WEBHOOK_BASE_URL: { from_secret: WEBHOOK_BASE_URL_DEV }
|
WEBHOOK_BASE_URL: { from_secret: WEBHOOK_BASE_URL_DEV }
|
||||||
DATABASE_URL: { from_secret: DATABASE_URL_DEV }
|
DATABASE_URL: { from_secret: DATABASE_URL_DEV }
|
||||||
CLOUDFLARE_API_TOKEN: { from_secret: CLOUDFLARE_API_TOKEN }
|
|
||||||
CLOUDFLARE_ZONE_ID: { from_secret: CLOUDFLARE_ZONE_ID }
|
|
||||||
CPANEL_HOST: { from_secret: CPANEL_HOST }
|
|
||||||
CPANEL_USERNAME: { from_secret: CPANEL_USERNAME }
|
|
||||||
CPANEL_API_TOKEN: { from_secret: CPANEL_API_TOKEN }
|
|
||||||
HARBOR_USER: { from_secret: HARBOR_USERNAME }
|
HARBOR_USER: { from_secret: HARBOR_USERNAME }
|
||||||
HARBOR_PASS: { from_secret: HARBOR_PASSWORD }
|
HARBOR_PASS: { from_secret: HARBOR_PASSWORD }
|
||||||
commands:
|
commands:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue