Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add arm64 support & bump actions #277

Merged
merged 1 commit into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,19 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# - name: Run server tests
# run: |
# cd server
Expand All @@ -33,13 +40,18 @@ jobs:
# flags: server

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PWD }}

- name: Docker Build
run: docker build -t zilliz/attu:dev --build-arg VERSION=dev .

- name: Docker Push Dev
run: docker push zilliz/attu:dev
- name: Docker Build&Push
shell: bash
run: |
docker buildx build \
--platform=linux/amd64,linux/arm64 \
-t zilliz/attu:dev \
--build-arg VERSION=dev \
--push \
--progress=plain \
.
33 changes: 20 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,33 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PWD }}

- name: Docker Build
run: docker build -t zilliz/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

- name: Docker Push version
run: docker push zilliz/attu:${GITHUB_REF#refs/tags/}

- name: Docker Push lastest
run: docker push zilliz/attu
- name: Docker Build&Push
shell: bash
run: |
docker buildx build \
--platform=linux/amd64,linux/arm64 \
-t zilliz/attu:${GITHUB_REF#refs/tags/} \
-t zilliz/attu:latest \
--build-arg VERSION=${GITHUB_REF#refs/tags/} \
--push \
--progress=plain \
.
Loading