diff --git a/.github/workflows/affine.yml b/.github/workflows/affine.yml index a5c0eafe70..6ff463c6d2 100644 --- a/.github/workflows/affine.yml +++ b/.github/workflows/affine.yml @@ -33,23 +33,31 @@ jobs: uses: actions/checkout@v2 - name: Log in to the Container registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v1 + - name: Extract metadata (tags, labels) for Docker (AFFiNE-Local) id: meta_affine - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + uses: docker/metadata-action@v4 with: images: ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.AFFINE_IMAGE_NAME }} tags: ${{ env.IMAGE_TAG_LATEST }} - name: Build and push Docker image (AFFINE-Local) - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@v3 with: context: . + platforms: linux/amd64,linux/arm64/v8 file: ./.github/deployment/Dockerfile-affine push: ${{ github.ref == 'refs/heads/master' && true || false }} tags: ${{ steps.meta_affine.outputs.tags }} diff --git a/.vscode/settings.json b/.vscode/settings.json index c3d35c66ff..28ff9ad821 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,6 +7,7 @@ "Backlinks", "blockdb", "booktitle", + "Buildx", "Cascader", "clsx", "cssmodule",