This repository was archived by the owner on Apr 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +53
-1
lines changed Expand file tree Collapse file tree 3 files changed +53
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Latest Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' feature/**'
7
+ paths :
8
+ - ' webapp_frontend/**'
9
+ - ' webapp_provider/**'
10
+
11
+ jobs :
12
+ Build_Docker_Image_on_Push :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ -
16
+ name : Set up Project
17
+ uses : actions/checkout@v2
18
+ -
19
+ name : Set up Node.js environment
20
+
21
+ with :
22
+ node-version : 12
23
+ -
24
+ name : Build frontend
25
+ run : |
26
+ cd webapp_frontend
27
+ npm i
28
+ npm run-script build
29
+ cp -r build ../webapp_provider/public
30
+ -
31
+ name : Login to DockerHub
32
+ uses : docker/login-action@v1
33
+ with :
34
+ username : ${{ secrets.DOCKER_USER }}
35
+ password : ${{ secrets.DOCKER_PW }}
36
+ -
37
+ name : Build and push
38
+ run : |
39
+ docker build -t filefighter/frontend:feature webapp_provider/
40
+ docker push filefighter/frontend:feature
Original file line number Diff line number Diff line change 1
1
name : Latest Release
2
2
3
- on : push
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' master'
7
+ paths :
8
+ - ' webapp_frontend/**'
9
+ - ' webapp_provider/**'
4
10
5
11
jobs :
6
12
Build_Docker_Image_on_Push :
Original file line number Diff line number Diff line change @@ -2,8 +2,14 @@ name: Stable Release
2
2
3
3
on :
4
4
push :
5
+ branches :
6
+ - ' master'
5
7
tags :
6
8
- ' v*.*.*'
9
+ paths :
10
+ - ' webapp_frontend/**'
11
+ - ' webapp_provider/**'
12
+
7
13
jobs :
8
14
Build_Docker_Image_on_new_Tag :
9
15
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments