Skip to content

Commit

Permalink
add docker build to Frontend build
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammers21 committed Aug 2, 2024
1 parent 10779c3 commit d6700b1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/frontend-build.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
name: Frontend build
'on': [push, pull_request]
jobs:
build:
build-normal:
runs-on: ubuntu-latest
env:
CI: false
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
- name: Use Node.js 22.x
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 22.x
- run: npm install
working-directory: ./frontend
- run: npm run build
working-directory: ./frontend
build-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Docker image
run: docker build -t my-frontend .
working-directory: ./frontend

0 comments on commit d6700b1

Please sign in to comment.