Skip to content

Commit

Permalink
feat: fast build linux/arm64 frontend (songquanpeng#1645)
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 authored Jul 14, 2024
1 parent a3eefb7 commit 1c44d7e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 72 deletions.
69 changes: 0 additions & 69 deletions .github/workflows/docker-image-arm64.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Docker image (amd64, English)
name: Publish Docker image (English)

on:
push:
Expand Down Expand Up @@ -51,6 +51,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Docker image (amd64)
name: Publish Docker image

on:
push:
Expand Down Expand Up @@ -56,6 +56,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16 as builder
FROM --platform=$BUILDPLATFORM node:16 as builder

WORKDIR /web
COPY ./VERSION .
Expand Down

0 comments on commit 1c44d7e

Please sign in to comment.