Skip to content

Commit

Permalink
feat: fast build linux/arm64 frontend (#1663)
Browse files Browse the repository at this point in the history
* feat: fast build linux/arm64 frontend

* fix: dockerfile as replace to AS

* fix: trim space
  • Loading branch information
zijiren233 authored Jul 22, 2024
1 parent 39383e5 commit 5f03c85
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 65 deletions.
61 changes: 0 additions & 61 deletions .github/workflows/docker-image-amd64.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 @@ -34,6 +34,13 @@ jobs:
- name: Translate
run: |
python ./i18n/translate.py --repository_path . --json_file_path ./i18n/en.json
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
Expand All @@ -51,6 +58,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,10 +1,9 @@
name: Publish Docker image (arm64)
name: Publish Docker image

on:
push:
tags:
- 'v*.*.*'
- '!*-alpha*'
workflow_dispatch:
inputs:
name:
Expand Down
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 5f03c85

Please sign in to comment.