Skip to content

Commit

Permalink
Merge pull request #277 from keongalvin/arm64-builds
Browse files Browse the repository at this point in the history
add arm64 support & bump actions
  • Loading branch information
shanghaikid authored Sep 25, 2023
2 parents f1802e3 + 0436c4f commit b707c69
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 20 deletions.
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 \
.

0 comments on commit b707c69

Please sign in to comment.