Skip to content

Commit

Permalink
add webapp build to docker pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
fynnfluegge committed Nov 17, 2024
1 parent f27cacd commit 17e984d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/docker-build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ env:
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -32,6 +36,30 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Build webapp
run: |
cd webapp
npm ci
npm run build
- uses: actions/setup-python@v5
with:
python-version: "3.9"
Expand Down

0 comments on commit 17e984d

Please sign in to comment.