This commit is contained in:
39
.drone.yml
39
.drone.yml
@@ -131,29 +131,10 @@ steps:
|
||||
when:
|
||||
branch: [main, develop]
|
||||
|
||||
# Integration tests with real services
|
||||
- name: integration-test
|
||||
image: docker/compose:latest
|
||||
depends_on:
|
||||
- build-user-service
|
||||
- build-emergency-service
|
||||
- build-location-service
|
||||
- build-calendar-service
|
||||
- build-notification-service
|
||||
- build-api-gateway
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
commands:
|
||||
- docker-compose -f docker-compose.test.yml up -d
|
||||
- sleep 30
|
||||
- docker-compose -f docker-compose.test.yml exec -T api-gateway curl -f http://localhost:8000/health
|
||||
- docker-compose -f docker-compose.test.yml exec -T user-service curl -f http://localhost:8001/api/v1/health
|
||||
- docker-compose -f docker-compose.test.yml down
|
||||
|
||||
# Deploy to staging
|
||||
- name: deploy-staging
|
||||
image: plugins/ssh
|
||||
depends_on: [integration-test]
|
||||
depends_on: [build-user-service, build-emergency-service, build-location-service, build-calendar-service, build-notification-service, build-api-gateway]
|
||||
settings:
|
||||
host:
|
||||
from_secret: staging_host
|
||||
@@ -172,7 +153,7 @@ steps:
|
||||
# Deploy to production
|
||||
- name: deploy-production
|
||||
image: plugins/ssh
|
||||
depends_on: [integration-test]
|
||||
depends_on: [build-user-service, build-emergency-service, build-location-service, build-calendar-service, build-notification-service, build-api-gateway]
|
||||
settings:
|
||||
host:
|
||||
from_secret: production_host
|
||||
@@ -231,20 +212,6 @@ services:
|
||||
- name: redis
|
||||
image: redis:7-alpine
|
||||
|
||||
# Test Kafka
|
||||
- name: kafka
|
||||
image: confluentinc/cp-kafka:latest
|
||||
environment:
|
||||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
|
||||
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
|
||||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
|
||||
|
||||
- name: zookeeper
|
||||
image: confluentinc/cp-zookeeper:latest
|
||||
environment:
|
||||
ZOOKEEPER_CLIENT_PORT: 2181
|
||||
ZOOKEEPER_TICK_TIME: 2000
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
@@ -281,4 +248,4 @@ steps:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
|
||||
hmac: 2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
|
||||
|
||||
Reference in New Issue
Block a user