Skip to content

Commit 0c0c92e

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent 6c4957a commit 0c0c92e

File tree

1 file changed

+43
-36
lines changed

1 file changed

+43
-36
lines changed

azure-pipelines.yml

Lines changed: 43 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,48 @@
66
trigger:
77
- master
88

9-
pool:
10-
vmImage: 'macOS-latest'
11-
container:
12-
image: circleci/node:14.15.4
13-
name: react-ssr-advanced
9+
jobs:
10+
- job: TestAndCoverage
11+
pool:
12+
vmImage: 'macOS-latest'
1413

15-
## Multi-container support here
16-
services:
17-
postgres:
18-
image: circleci/postgres:9.6.16-alpine
19-
ports:
20-
- "5432:5432"
21-
volumes:
22-
- db-data:/var/lib/postgresql/data
23-
env:
24-
POSTGRES_USER: postgres
25-
POSTGRES_DB: postgres
26-
POSTGRES_PASSWORD: password
27-
## End multi-container
14+
steps:
15+
- script: |
16+
npm install codecov
17+
npm install
18+
npm test
19+
npm run build:frontend
20+
npm run build:backend:ci
21+
npx codecov
22+
displayName: 'npm install and build'
23+
24+
- job: CircleCI
25+
pool:
26+
container:
27+
image: circleci/node:14.15.4
28+
name: react-ssr-advanced
2829

29-
steps:
30-
- script: |
31-
npm install codecov
32-
npm install
33-
npm test
34-
npm run build:frontend
35-
npm run build:backend:ci
36-
npx codecov
37-
displayName: 'npm install and build'
38-
- script: |
39-
sudo snap install --classic heroku
40-
heroku login
41-
heroku stack:set heroku-18
42-
cd docker/backend/prod
43-
heroku container:login
44-
heroku container:push web --app=react-ssr-nest-api
45-
heroku container:release web --app=react-ssr-nest-api
46-
displayName: 'Deploy Backend Build'
30+
## Multi-container support here
31+
services:
32+
postgres:
33+
image: circleci/postgres:9.6.16-alpine
34+
ports:
35+
- "5432:5432"
36+
volumes:
37+
- db-data:/var/lib/postgresql/data
38+
env:
39+
POSTGRES_USER: postgres
40+
POSTGRES_DB: postgres
41+
POSTGRES_PASSWORD: password
42+
## End multi-container
43+
44+
steps:
45+
- script: |
46+
sudo snap install --classic heroku
47+
heroku login
48+
heroku stack:set heroku-18
49+
cd docker/backend/prod
50+
heroku container:login
51+
heroku container:push web --app=react-ssr-nest-api
52+
heroku container:release web --app=react-ssr-nest-api
53+
displayName: 'Deploy Backend Build'

0 commit comments

Comments
 (0)