Skip to content

Commit

Permalink
Refactor frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
frankh committed Jul 17, 2023
1 parent edc681b commit 684ebfd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-api.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker build
name: API Docker build

on:
push:
Expand Down
24 changes: 20 additions & 4 deletions .github/workflows/docker-frontend.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: Docker build
name: Frontend Docker build

on:
push:

jobs:
docker:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'frontend'

permissions:
contents: read
Expand Down Expand Up @@ -40,13 +43,26 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'

-
name: Install dependencies
run: npm install

-
name: Build
run: npm run build

-
name: Build and push
uses: docker/build-push-action@v4
with:
context: frontend/
# TODO: arm64, but it keeps timing out
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 684ebfd

Please sign in to comment.