basic frontend (#3)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Co-authored-by: aovantsev <aovantsev@avito.ru> Reviewed-on: #3
This commit is contained in:
11
.drone.yml
11
.drone.yml
@@ -19,8 +19,8 @@ steps:
|
||||
- docker stop counter-app || true
|
||||
- docker rm counter-app || true
|
||||
|
||||
# Run the new container
|
||||
- docker run -d --name counter-app -p 8080:8080 localhost:5000/counter:latest
|
||||
# Run the new container with environment variables
|
||||
- docker run -d --name counter-app -e ENVIRONMENT=production -e JWT_SECRET=your-super-secure-production-secret -e DATABASE_URL=postgres://postgres:password@infra-postgres-1:5432/counter_db?sslmode=disable -e GIN_MODE=release -e LOG_LEVEL=warn -p 8080:8080 --network infra_backend_nw localhost:5000/counter:latest
|
||||
|
||||
volumes:
|
||||
- name: dockersock
|
||||
@@ -31,3 +31,10 @@ trigger:
|
||||
branch:
|
||||
- main
|
||||
- feature/*
|
||||
event:
|
||||
- push
|
||||
exclude:
|
||||
event:
|
||||
- pull_request
|
||||
- pull_request_closed
|
||||
- pull_request_synchronize
|
||||
|
||||
Reference in New Issue
Block a user