Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 3be0c5d

Browse files
committed
Fixed Pipelines, added featureRelease.yml pipeline.
1 parent da02d60 commit 3be0c5d

File tree

3 files changed

+53
-1
lines changed

3 files changed

+53
-1
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
uses: actions/[email protected]
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

.github/workflows/latestRelease.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Latest Release
22

3-
on: push
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
paths:
8+
- 'webapp_frontend/**'
9+
- 'webapp_provider/**'
410

511
jobs:
612
Build_Docker_Image_on_Push:

.github/workflows/stableRelease.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@ name: Stable Release
22

33
on:
44
push:
5+
branches:
6+
- 'master'
57
tags:
68
- 'v*.*.*'
9+
paths:
10+
- 'webapp_frontend/**'
11+
- 'webapp_provider/**'
12+
713
jobs:
814
Build_Docker_Image_on_new_Tag:
915
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)