From 114c0c57a923ff80efcd862a7b94b1f4226ce55d Mon Sep 17 00:00:00 2001 From: myonlylonely Date: Sat, 20 Apr 2024 20:56:38 +0800 Subject: [PATCH] build docker images after tests workflow completed, change tag name, remove arm64 --- .github/workflows/preview-image.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/preview-image.yml b/.github/workflows/preview-image.yml index 8ac42b5a6a..e815ba899a 100644 --- a/.github/workflows/preview-image.yml +++ b/.github/workflows/preview-image.yml @@ -1,8 +1,12 @@ name: Preview Image on: - push: - tags: - - '*-dev' + workflow_run: + workflows: + - Tests + types: + - completed + branches: + - master workflow_dispatch: env: @@ -45,11 +49,6 @@ jobs: node-version: ${{ env.NODE_VERSION }} cache: 'yarn' - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - with: - platforms: arm64 - - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -78,14 +77,14 @@ jobs: with: push: true tags: | - redash/redash:preview - redash/preview:${{ steps.version.outputs.VERSION_TAG }} + myonlylonely/redash:preview + myonlylonely/redash:${{ steps.version.outputs.VERSION_TAG }} context: . build-args: | test_all_deps=true cache-from: type=gha,scope=multi-platform cache-to: type=gha,mode=max,scope=multi-platform - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 env: DOCKER_CONTENT_TRUST: true