Skip to content

Commit

Permalink
🐎 ci: Add docker build for linux arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Feb 20, 2024
1 parent 2838420 commit a0dfd7f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/console_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ jobs:
name: javet-shell-console-macos
path: console/build/libs/*.jar

build_docker_image_for_linux_x86_64:
name: Build Docker Image for Linux x86_64
build_docker_image_for_linux_amd64:
name: Build Docker Image for Linux amd64
runs-on: ubuntu-latest

steps:
Expand All @@ -103,3 +103,24 @@ jobs:
run: |
docker build -t ${{ env.DOCKERHUB_USERNAME }}/javet-shell:amd64-latest -f docker/console.Dockerfile .
docker push ${{ env.DOCKERHUB_USERNAME }}/javet-shell:amd64-latest
build_docker_image_for_linux_arm64:
name: Build Docker Image for Linux arm64
runs-on: macos-14

steps:

- name: Checkout the code
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker Build and Push
run: |
docker build -t ${{ env.DOCKERHUB_USERNAME }}/javet-shell:arm64-latest -f docker/console.Dockerfile .
docker push ${{ env.DOCKERHUB_USERNAME }}/javet-shell:arm64-latest
2 changes: 1 addition & 1 deletion docker/console.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# docker build -t sjtucaocao/javet-shell:amd64-latest --platform linux/amd64 -f docker/console.Dockerfile .
# docker build -t sjtucaocao/javet-shell:arm64-latest --platform linux/arm64 -f docker/console.Dockerfile .

FROM gradle:8.2-jdk17-jammy as build
FROM gradle:8.5-jdk17-jammy as build

ENV VERSION=0.1.0

Expand Down

0 comments on commit a0dfd7f

Please sign in to comment.