Skip to content

Commit a6066b6

Browse files
committed
Added azure pipeline for build only
1 parent 5de3a18 commit a6066b6

File tree

69 files changed

+2041
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+2041
-96
lines changed

azure-pipelines.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Node.js
2+
# Build a general Node.js project with npm.
3+
# Add steps that analyze code, save build artifacts, deploy, and more:
4+
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
5+
6+
trigger:
7+
- master
8+
9+
pool:
10+
vmImage: 'ubuntu-latest'
11+
12+
variables:
13+
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
14+
CURRENT_BRANCH_NAME: $(Build.SourceBranch)
15+
16+
steps:
17+
- task: Cache@2
18+
inputs:
19+
key: 'yarn | "$(Agent.OS)" | yarn.lock'
20+
restoreKeys: |
21+
yarn | "$(Agent.OS)"
22+
yarn
23+
path: $(YARN_CACHE_FOLDER)
24+
displayName: Cache Yarn packages
25+
26+
- script: yarn --frozen-lockfile
27+
28+
- task: NodeTool@0
29+
inputs:
30+
versionSpec: '10.x'
31+
displayName: 'Install Node.js'
32+
33+
- script: |
34+
curl -o- -L https://yarnpkg.com/install.sh | bash
35+
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
36+
displayName: 'Install yarn'
37+
38+
- script: |
39+
apt-get update
40+
apt-get install software-properties-common -y
41+
apt-get update
42+
apt-get install jq -y
43+
sudo ln -s bash /bin/sh.bash
44+
sudo mv /bin/sh.bash /bin/sh
45+
apt-get update
46+
yarn global add npx
47+
sh ./scripts/setup.sh
48+
sudo ln -s dash /bin/sh.dash
49+
sudo mv /bin/sh.dash /bin/sh
50+
displayName: 'Build Micro-Services'
51+
52+
- task: PublishPipelineArtifact@1
53+
inputs:
54+
targetPath: '$(Pipeline.Workspace)'
55+
artifact: 'UltimateBackend'
56+
publishLocation: 'pipeline'
57+

docker/development/gateway-admin.Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ WORKDIR /usr/src/app
99

1010
COPY package.json /usr/src/app/
1111

12-
RUN npm install -g @nestjs/cli
13-
RUN npm install rimraf -g
14-
RUN npm install -g npx
12+
RUN yarn global add rimraf
1513
RUN yarn
1614

1715
COPY . /usr/src/app

docker/development/gateway-client.Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ WORKDIR /usr/src/app
99

1010
COPY package.json /usr/src/app/
1111

12-
RUN npm install -g @nestjs/cli
13-
RUN npm install rimraf -g
14-
RUN npm install -g npx
12+
RUN yarn global add rimraf
1513
RUN yarn
1614

1715
COPY . /usr/src/app

docker/development/service-auth.Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ WORKDIR /usr/src/app
99

1010
COPY package.json /usr/src/app/
1111

12-
RUN npm install -g @nestjs/cli
13-
RUN npm install rimraf -g
14-
RUN npm install -g npx
12+
RUN yarn global add rimraf
1513
RUN yarn
1614

1715
COPY . /usr/src/app

docker/development/service-notification.Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ WORKDIR /usr/src/app
99

1010
COPY package.json /usr/src/app/
1111

12-
RUN npm install -g @nestjs/cli
13-
RUN npm install rimraf -g
14-
RUN npm install -g npx
12+
RUN yarn global add rimraf
1513
RUN yarn
1614

1715
COPY . /usr/src/app

docker/development/service-payment.Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ RUN ls
1111

1212
COPY package.json /usr/src/app/
1313

14-
RUN npm install -g @nestjs/cli
15-
RUN npm install rimraf -g
16-
RUN npm install -g npx
14+
RUN yarn global add rimraf
1715
RUN yarn
1816

1917
COPY . /usr/src/app

docker/development/service-project.Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ WORKDIR /usr/src/app
99

1010
COPY package.json /usr/src/app/
1111

12-
RUN npm install -g @nestjs/cli
13-
RUN npm install rimraf -g
14-
RUN npm install -g npx
12+
RUN yarn global add rimraf
1513
RUN yarn
1614

1715
COPY . /usr/src/app

docker/development/service-tenant.Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ WORKDIR /usr/src/app
99

1010
COPY package.json /usr/src/app/
1111

12-
RUN npm install -g @nestjs/cli
13-
RUN npm install rimraf -g
14-
RUN npm install -g npx
12+
RUN yarn global add rimraf
1513
RUN yarn
1614

1715
COPY . /usr/src/app

docker/development/service-user.Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ WORKDIR /usr/src/app
99

1010
COPY package.json /usr/src/app/
1111

12-
RUN npm install -g @nestjs/cli
13-
RUN npm install rimraf -g
14-
RUN npm install -g npx
12+
RUN yarn global add rimraf
1513
RUN yarn
1614

1715
COPY . /usr/src/app

docker/production/gateway-admin.Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ WORKDIR /usr/src/app
99

1010
COPY package.json /usr/src/app/
1111

12-
RUN npm install -g @nestjs/cli
13-
RUN npm install rimraf -g
14-
RUN npm install -g npx
12+
RUN yarn global add rimraf
1513
RUN yarn
1614

1715
COPY . /usr/src/app

0 commit comments

Comments
 (0)