Skip to content

Commit

Permalink
test dev build
Browse files Browse the repository at this point in the history
Signed-off-by: shanghaikid <[email protected]>
  • Loading branch information
shanghaikid committed Nov 12, 2024
1 parent 616698d commit 087208d
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -30,15 +37,41 @@ 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
cache-to: type=inline
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

0 comments on commit 087208d

Please sign in to comment.