Files
bogazici-api/.drone.yml
Bulut Kuru 733607493a
All checks were successful
continuous-integration/drone/pr Build is passing
deploy sh6
2026-03-27 20:54:05 +03:00

44 lines
842 B
YAML

kind: pipeline
type: docker
name: bogazici-api
trigger:
branch:
- test
- main
steps:
- name: deploy-test
image: appleboy/drone-ssh
when:
branch:
- test
settings:
host:
from_secret: SERVER_HOST
username:
from_secret: SERVER_USER
key:
from_secret: SERVER_SSH_KEY
port: 22
script:
- cd /opt/projects/bogazici/corporate-api/test/api
- bash scripts/deploy-test.sh
- name: deploy-prod
image: appleboy/drone-ssh
when:
branch:
- main
settings:
host:
from_secret: SERVER_HOST
username:
from_secret: SERVER_USER
key:
from_secret: SERVER_SSH_KEY
port: 22
script:
- cd /opt/projects/bogazici/corporate-api/prod/api
- bash scripts/deploy-prod.sh