From 52088429433cb479baf40ff583d4d4f35a5d643e Mon Sep 17 00:00:00 2001 From: wulabing Date: Sat, 18 Mar 2023 17:02:14 +0800 Subject: [PATCH] 0.0.7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [update] buildx 支持 amd64 及 arm64 构建 --- .github/workflows/xray_docker_reality.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/xray_docker_reality.yml b/.github/workflows/xray_docker_reality.yml index 81e9320..4bf7cab 100644 --- a/.github/workflows/xray_docker_reality.yml +++ b/.github/workflows/xray_docker_reality.yml @@ -37,14 +37,13 @@ jobs: TAG_NAME=$(echo "$FIRST_LINE" | tr -d '[:space:]') # Remove spaces if needed echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV - - name: Build the Docker image - run: docker build --file ./reality/Dockerfile --tag wulabing/xray_docker_reality:${{env.TAG_NAME}} ./reality - - - name: Build the Docker image latest - run: docker build --file ./reality/Dockerfile --tag wulabing/xray_docker_reality:latest ./reality - - - name: Push the Docker image - run: docker push wulabing/xray_docker_reality:${{env.TAG_NAME}} - - - name: Push the Docker image latest - run: docker push wulabing/xray_docker_reality:latest \ No newline at end of file + - name: Build and push Docker image + uses: docker/build-push-action@v4.0.0 + with: + context: ./reality + file: ./reality/Dockerfile + platforms: linux/amd64,linux/arm64 + tags: | + wulabing/xray_docker_reality:${{env.TAG_NAME}} + wulabing/xray_docker_reality:latest + push: true