File tree 10 files changed +9358
-14584
lines changed
10 files changed +9358
-14584
lines changed Original file line number Diff line number Diff line change 16
16
"node" : {
17
17
"extensions" : [" .json" , " .js" , " .jsx" ]
18
18
}
19
- }
19
+ },
20
+ "react" : {
21
+ "version" : " detect"
22
+ }
20
23
},
21
24
"rules" : {
22
25
"prefer-object-spread" : 0 ,
Original file line number Diff line number Diff line change 1
1
* ** I'm submitting a ...**
2
2
- [ ] bug report
3
3
- [ ] feature request
4
- - [ ] support request => Please do not submit support request here, see note at the top of this template.
4
+ - [ ] proposal
5
5
6
6
* ** What is the current behavior?**
7
7
8
8
* ** What is the expected behavior?(how you want it to be)**
9
9
10
- * ** Please tell us about your environment:**
10
+ * ** Please tell us about your environment(optional for feature/proposal) :**
11
11
12
12
- node version:
13
- - Browser:
14
- - Angular version:
15
13
- typescript version:
16
14
- package manager(yarn or npm):
Original file line number Diff line number Diff line change 2
2
#### Description of Task to be completed?
3
3
#### How should this be manually tested?
4
4
#### Any background context you want to provide?
5
- #### What are the relevant pivotal tracker stories?
6
5
#### Screenshots (if appropriate)
7
6
#### Questions:
Original file line number Diff line number Diff line change 1
- # Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2
- # More GitHub Actions for Azure: https://github.com/Azure/actions
3
-
4
- name : Build and deploy Node.js app to Azure Web App - ros-frontend(staging)
1
+ name : Develop Deploy
5
2
6
3
on :
7
4
push :
8
5
branches :
9
6
- develop
10
7
11
8
jobs :
12
- build-and-deploy :
9
+ build :
10
+ name : build
13
11
runs-on : ubuntu-latest
14
-
15
12
steps :
16
- - uses : actions/checkout@master
17
13
18
- - uses : azure/docker-login@v1
14
+ - name : Checkout
15
+ uses : actions/checkout@v2
16
+
17
+ - name : build and push image
18
+ uses : docker/build-push-action@v1
19
19
with :
20
- login-server : rosdocker.azurecr.io
21
- username : ${{ secrets.REGISTRY_USERNAME }}
20
+ username : ${{ secrets.REGISTRY_USERNAME }}
22
21
password : ${{ secrets.REGISTRY_PASSWORD }}
22
+ repository : rwandaopensource/opensource
23
+ tags : staging
23
24
24
- - name : ' Building image and pushing image '
25
- run : |
26
- docker build . -t rosdocker.azurecr.io/staging:latest
27
- docker push rosdocker.azurecr.io/staging:latest
25
+ - name : trigger netlify build hooks
26
+ uses : wei/curl@v1
27
+ with :
28
+ args : -X POST -d '{}' ${{ secrets.STAGING_BUILD_HOOK }}
Original file line number Diff line number Diff line change 1
- # Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2
- # More GitHub Actions for Azure: https://github.com/Azure/actions
3
-
4
- name : Build and deploy Node.js app to Azure Web App - ros-frontend
1
+ name : Master Deploy
5
2
6
3
on :
7
4
push :
8
5
branches :
9
6
- master
10
7
11
8
jobs :
12
- build-and-deploy :
9
+ build :
10
+ name : build
13
11
runs-on : ubuntu-latest
14
-
15
12
steps :
16
- - uses : actions/checkout@master
17
13
18
- - uses : azure/docker-login@v1
14
+ - name : Checkout
15
+ uses : actions/checkout@v2
16
+
17
+ - name : build and push image
18
+ uses : docker/build-push-action@v1
19
19
with :
20
- login-server : rosdocker.azurecr.io
21
- username : ${{ secrets.REGISTRY_USERNAME }}
20
+ username : ${{ secrets.REGISTRY_USERNAME }}
22
21
password : ${{ secrets.REGISTRY_PASSWORD }}
22
+ repository : rwandaopensource/opensource
23
+ tags : lts
23
24
24
- - name : ' Building image and pushing image '
25
- run : |
26
- docker build . -t rosdocker.azurecr.io/app:latest
27
- docker push rosdocker.azurecr.io/app:latest
25
+ - name : trigger netlify build hooks
26
+ uses : wei/curl@v1
27
+ with :
28
+ args : -X POST -d '{}' ${{ secrets.PRODUCTION_BUILD_HOOK }}
Original file line number Diff line number Diff line change 10
10
* .pid
11
11
* .seed
12
12
* .pid.lock
13
- yarn.lock
14
13
# Directory for instrumented libs generated by jscoverage/JSCover
15
14
lib-cov
16
15
@@ -37,7 +36,8 @@ build/Release
37
36
# Dependency directories
38
37
node_modules /
39
38
jspm_packages /
40
- * .DS_Store
39
+ * .DS_Store *
40
+ package-lock.json
41
41
42
42
# TypeScript v1 declaration files
43
43
typings /
Original file line number Diff line number Diff line change 1
1
FROM node:12-alpine
2
2
3
- RUN mkdir -p /home/site/wwwroot
4
- WORKDIR /home/site/wwwroot
3
+ RUN mkdir -p /app
4
+ WORKDIR /app
5
5
COPY . .
6
- RUN npm install && \
7
- npm run build && \
6
+ RUN yarn && \
7
+ yarn build && \
8
8
rm -rf public/ && \
9
9
rm -rf node_modules/ && \
10
10
rm -rf src/
11
- RUN npm install --only= production
11
+ RUN yarn install --production=true
12
12
13
- CMD ["npm " , "start" ]
13
+ CMD ["yarn " , "start" ]
You can’t perform that action at this time.
0 commit comments