From 8ee9f598a3937ea6ed945d3576b4a607829be60e Mon Sep 17 00:00:00 2001 From: tscuite Date: Fri, 16 Dec 2022 18:26:09 +0800 Subject: [PATCH] feat: add qemu buildx --- .github/workflows/deploy-dev.yaml | 6 +++--- .github/workflows/release_dongtai.yml | 8 ++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-dev.yaml b/.github/workflows/deploy-dev.yaml index d3f8d0cd9..5978a9880 100644 --- a/.github/workflows/deploy-dev.yaml +++ b/.github/workflows/deploy-dev.yaml @@ -18,10 +18,10 @@ jobs: uses: actions/checkout@v2 - name: Setup QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: Setup Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Login to Aliyun Registry uses: docker/login-action@v1 @@ -52,7 +52,7 @@ jobs: echo "REPLACE INTO project_version_control (version, component_name, component_version_hash) VALUES('${{ github.run_number }}.0.0', '${{ github.event.repository.name }}', '${GITHUB_SHA}');" >> ./deploy/docker/version.sql - name: Build and push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: file: Dockerfile context: . diff --git a/.github/workflows/release_dongtai.yml b/.github/workflows/release_dongtai.yml index 381d44d36..4afd581a1 100644 --- a/.github/workflows/release_dongtai.yml +++ b/.github/workflows/release_dongtai.yml @@ -67,9 +67,13 @@ jobs: ossutil cp oss://dongtai/agent/python/ ./ --include "*.tar.gz" -r ossutil cp oss://dongtai/agent/php/ ./ --include "*.tar.gz" -r echo "REPLACE INTO project_version_control (version, component_name, component_version_hash) VALUES('${{ steps.release.outputs.version }}', '${{ github.event.repository.name }}', '${GITHUB_SHA}');" >> ./deploy/docker/version.sql - + + - name: Setup QEMU + uses: docker/setup-qemu-action@v2 + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v2 - name: Build and push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: file: Dockerfile context: .