Skip to content

Commit

Permalink
chore: add workflow to build arm appflowy web image
Browse files Browse the repository at this point in the history
  • Loading branch information
khorshuheng committed Jan 24, 2025
1 parent 7a53e13 commit 983fdcc
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/web_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ on:
required: true
jobs:
appflowy_web_image:
runs-on: ubuntu-22.04
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-22.04
platform: linux/amd64
- os: ubuntu-22.04-arm
platform: linux/arm64
steps:
- name: Check out the repository
uses: actions/checkout@v3
Expand All @@ -26,8 +33,8 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build AppFlowy Web
- name: Build and push AppFlowy Web
run: |
export VERSION=${{ github.event.inputs.appflowy_web_version }}
export TAG=${VERSION#v}
docker buildx build --build-arg VERSION=${VERSION} --platform linux/amd64,linux/arm64 -t appflowyinc/appflowy-web:${TAG} -t appflowyinc/appflowy-web:latest -f docker/web/Dockerfile docker/web
docker buildx build --build-arg VERSION=${VERSION} --platform ${{ matrix.platform }} -t appflowyinc/appflowy_web:${TAG} -t appflowyinc/appflowy_web:latest -f docker/web/Dockerfile --push docker/web

0 comments on commit 983fdcc

Please sign in to comment.