feat: add production blue-green frontend deployment

This commit is contained in:
2026-09-20 21:44:56 +08:00
parent 592f01eb1f
commit 6e0144d7cd
4 changed files with 117 additions and 31 deletions
+3 -1
View File
@@ -60,7 +60,9 @@ describe('admin nginx deployment config', () => {
expect(jenkinsfile).toContain("credentialsId: 'firstleg-production-ssh'")
expect(jenkinsfile).toContain('git rev-parse origin/main')
expect(productionCompose).toContain('127.0.0.1:${HOST_PORT:-9001}:80')
expect(productionCompose).toContain('API_UPSTREAM: "http://gateway:9000"')
expect(productionCompose).toContain('API_UPSTREAM: "http://gateway-active:9000"')
expect(productionCompose).toContain('OVERSEAS_API_UPSTREAM: "http://gateway-overseas-active:9300"')
expect(productionCompose).toContain('name: firstleg-production-routing')
expect(productionCompose).toContain('name: firstleg-prod-infra-network')
})