Skip to content

Commit

Permalink
Speed up Docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Yureien committed Nov 4, 2023
1 parent 62c4eb2 commit 5e87a46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build-push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: yureien/yabin:latest
cache-from: type=registry,ref=yureien/yabin:buildcache
cache-to: type=registry,ref=yureien/yabin:buildcache,mode=max
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine AS builder
FROM --platform=$BUILDPLATFORM node:18-alpine AS builder

WORKDIR /app

Expand Down

0 comments on commit 5e87a46

Please sign in to comment.