Skip to content

Commit 7cd0ffe

Browse files
feat: add Docker build steps for development and production images
1 parent 03a7c83 commit 7cd0ffe

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/frontend_build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,32 @@ jobs:
5353
- name: Build
5454
working-directory: ./frontend
5555
run: pnpm run build
56+
57+
Docker_Build:
58+
runs-on: ubuntu-latest
59+
needs: [frontend-unit-test]
60+
61+
steps:
62+
- name: Checkout repository
63+
uses: actions/checkout@v5
64+
65+
- name: Set up Docker Buildx
66+
uses: docker/setup-buildx-action@v3
67+
68+
- name: Build dev image
69+
uses: docker/build-push-action@v6
70+
with:
71+
context: ./frontend
72+
file: ./frontend/Dockerfile.dev
73+
push: false
74+
cache-from: type=gha
75+
cache-to: type=gha,mode=max
76+
77+
- name: Build prod image
78+
uses: docker/build-push-action@v6
79+
with:
80+
context: ./frontend
81+
file: ./frontend/Dockerfile.prod
82+
push: false
83+
cache-from: type=gha
84+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)