From 087208d222e95035b5779c91177d05032380b257 Mon Sep 17 00:00:00 2001 From: shanghaikid Date: Tue, 12 Nov 2024 20:22:50 +0800 Subject: [PATCH] test dev build Signed-off-by: shanghaikid --- .github/workflows/dev.yml | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 3a2bb650..febaf170 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -11,6 +11,13 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + platform: + - linux/amd64 + - linux/arm64 + - linux/arm/v7 + steps: - uses: actions/checkout@v4 @@ -30,11 +37,11 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PWD }} - - name: Docker Build and Push for Multi-Platform + - name: Docker Build and Push uses: docker/build-push-action@v5 with: context: . - platforms: linux/amd64,linux/arm64,linux/arm/v7 + platforms: ${{ matrix.platform }} tags: | zilliz/attu:dev cache-from: type=registry,ref=zilliz/attu:cache @@ -42,3 +49,29 @@ jobs: build-args: | VERSION=dev push: true + + manifest: + runs-on: ubuntu-latest + needs: build + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + install: true + + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PWD }} + + - name: Create and Push Docker Manifest + run: | + docker manifest create zilliz/attu:dev \ + zilliz/attu:dev-linux/amd64 \ + zilliz/attu:dev-linux/arm64 \ + zilliz/attu:dev-linux/arm/v7 + docker manifest push zilliz/attu:dev