Skip to content

Commit

Permalink
Some docker fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
frankh committed Jul 17, 2023
1 parent edc681b commit a4a692f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .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 All @@ -18,7 +18,7 @@ jobs:
name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
platforms: arm64, arm
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -41,7 +41,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
Expand Down
22 changes: 19 additions & 3 deletions .github/workflows/docker-frontend.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker build
name: Frontend Docker build

on:
push:
Expand All @@ -18,7 +18,7 @@ jobs:
name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
platforms: arm64, arm
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -40,8 +40,24 @@ 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
name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: frontend/
Expand Down

0 comments on commit a4a692f

Please sign in to comment.