diff --git a/.github/workflows/web_docker.yml b/.github/workflows/web_docker.yml index 825b1e697..7345392c1 100644 --- a/.github/workflows/web_docker.yml +++ b/.github/workflows/web_docker.yml @@ -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 @@ -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