Skip to content

Commit 8c8a15d

Browse files
authored
Gitubu Action for image build for UI and API (#10)
* Angular Upgrade * docker setup update and nuget package update * fronend build * api build
1 parent a08a4f4 commit 8c8a15d

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Angular Build
2+
on:
3+
push:
4+
branches: main
5+
paths:
6+
- 'frontend/**'
7+
8+
jobs:
9+
main:
10+
runs-on: Ubuntu-20.04
11+
steps:
12+
-
13+
name: Checkout
14+
uses: actions/checkout@v2
15+
-
16+
name: Set up QEMU
17+
uses: docker/setup-qemu-action@v1
18+
-
19+
name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v1
21+
22+
-
23+
name: Build
24+
id: docker_build
25+
uses: docker/build-push-action@v2
26+
with:
27+
context: frontend/.
28+
file: frontend/Dockerfile

.github/workflows/api-build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Api Build
2+
on:
3+
push:
4+
branches: main
5+
paths:
6+
- 'Api/**'
7+
8+
jobs:
9+
main:
10+
runs-on: Ubuntu-20.04
11+
steps:
12+
-
13+
name: Checkout
14+
uses: actions/checkout@v2
15+
-
16+
name: Set up QEMU
17+
uses: docker/setup-qemu-action@v1
18+
-
19+
name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v1
21+
22+
-
23+
name: Build
24+
id: docker_build
25+
uses: docker/build-push-action@v2
26+
with:
27+
context: Api/.
28+
file: Api/Dockerfile

0 commit comments

Comments
 (0)