From 238a9eaae19a976a4f8e7542c68c2dc9c95d71ca Mon Sep 17 00:00:00 2001 From: keongalvin Date: Sat, 23 Sep 2023 12:25:47 +0800 Subject: [PATCH] arm --- .github/workflows/release.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 66180eaa..83a1414e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,14 +20,26 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PWD }} + - name: Docker Pull + shell: bash + run: | + docker run --rm --privileged tonistiigi/binfmt -- install arm64 + docker buildx ls + docker buildx create --use --name=attu --driver docker-container - name: Docker Build - run: docker build -t zilliz/attu:${GITHUB_REF#refs/tags/} --build-arg VERSION=${GITHUB_REF#refs/tags/} . + shell: bash + run: | + docker buildx ls + docker buildx build \ + --platform=linux/amd64,linux/arm64 \ + -t nivla1/attu:${GITHUB_REF#refs/tags/} \ + --build-arg VERSION=${GITHUB_REF#refs/tags/} . - name: Docker tag - run: docker tag zilliz/attu:${GITHUB_REF#refs/tags/} zilliz/attu:latest + run: docker tag nivla1/attu:${GITHUB_REF#refs/tags/} nivla1/attu:latest - name: Docker Push version - run: docker push zilliz/attu:${GITHUB_REF#refs/tags/} + run: docker push nivla1/attu:${GITHUB_REF#refs/tags/} - name: Docker Push lastest - run: docker push zilliz/attu + run: docker push nivla1/attu