chore: add script npm for postbuild website staging

feature/blog
Näser 3 years ago
parent fa3ddac572
commit e8de043e9d

@ -26,6 +26,7 @@ services:
depends_on: depends_on:
- gs_redis - gs_redis
volumes: volumes:
gs_postgres-master: gs_postgres-master:
driver: local driver: local

@ -18,6 +18,7 @@
"start:website": "nx serve website", "start:website": "nx serve website",
"build:website:development": "nx build website --configuration development --verbose", "build:website:development": "nx build website --configuration development --verbose",
"build:website:staging": "nx build website --configuration staging", "build:website:staging": "nx build website --configuration staging",
"postbuild:website:staging": "node scripts/website/build-staging.js",
"build:website:production": "nx build website --configuration production", "build:website:production": "nx build website --configuration production",
"start": "nx serve", "start": "nx serve",
"build": "nx build", "build": "nx build",

@ -0,0 +1,45 @@
services:
teamcity-server:
image: jetbrains/teamcity-server
container_name: teamcity-server-instance
user: root
ports:
- 8111:8111
networks:
- teamcity-networks
volumes:
- ./server/datadir:/data/teamcity_server/datadir
- ./server/logs:/opt/teamcity/logs
teamcity-agent-1:
image: jacobpeddk/teamcity-agent-nodejs
container_name: teamcity-agent-nodejs1
user: root
privileged: true
networks:
- teamcity-networks
volumes:
- ./agents/agent-1/conf:/data/teamcity_agent/conf
- /var/run/docker.sock:/var/run/docker.sock
environment:
- SERVER_URL=http://teamcity-server:8111
- DOCKER_IN_DOCKER=start
teamcity-agent-2:
image: jacobpeddk/teamcity-agent-nodejs
container_name: teamcity-agent-nodejs2
user: root
privileged: true
networks:
- teamcity-networks
volumes:
- ./agents/agent-2/conf:/data/teamcity_agent/conf
- /var/run/docker.sock:/var/run/docker.sock
environment:
- SERVER_URL=http://teamcity-server:8111
- DOCKER_IN_DOCKER=start
networks:
teamcity-networks:
driver: bridge
Loading…
Cancel
Save