From e45986f1a420104808390b8962d48e06411c5f84 Mon Sep 17 00:00:00 2001 From: Pan Luo Date: Wed, 27 Nov 2024 13:54:47 -0800 Subject: [PATCH] add support for arm64 platform --- .github/workflows/main.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 89409a4..686290d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,20 +32,21 @@ jobs: - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 - + uses: docker/setup-buildx-action@v3 + - name: Set tag id: tag run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} - name: Build and push id: docker_build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: + platforms: linux/amd64,linux/arm64 context: ./ file: ./Dockerfile push: true tags: lthub/moodle:${{ steps.tag.outputs.tag }} - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }} \ No newline at end of file + run: echo ${{ steps.docker_build.outputs.digest }}