Files
api-extranetwork/.drone.yml
ExtraNetwork 2170c9519f
Some checks failed
continuous-integration/drone/push Build is failing
update droneyml2
2026-05-13 12:00:28 +03:00

33 lines
997 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

kind: pipeline
type: docker
name: api-extranetwork
trigger:
branch:
- main
event:
- push
steps:
- name: deploy
image: appleboy/drone-ssh
settings:
host:
from_secret: DEPLOY_HOST
username:
from_secret: DEPLOY_USER
key:
from_secret: DEPLOY_SSH_KEY
port: 22
script:
- set -e
- cd /opt/docker/projects/api.extranetwork.com
- git fetch origin main
- git reset --hard origin/main
- docker compose -f docker-compose.prod.yml up -d --build --remove-orphans
- docker compose -f docker-compose.prod.yml exec -T app php artisan config:clear || true
- docker compose -f docker-compose.prod.yml exec -T app php artisan cache:clear || true
- docker compose -f docker-compose.prod.yml exec -T app php artisan route:clear || true
- docker compose -f docker-compose.prod.yml exec -T app php artisan view:clear || true
- echo "Deploy tamamlandı - $(date)"