Skip to content

Commit

Permalink
🐞 fix: Remove 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 8745dc1 commit d211f98
Showing 1 changed file with 6 additions and 33 deletions.
39 changes: 6 additions & 33 deletions .github/workflows/console_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}

jobs:
build_jar_for_linux_and_windows_x86_64:
name: Build Jar for Linux and Windows x86_64
jar_for_linux_and_windows_x86_64:
name: Jar for Linux and Windows x86_64
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -53,8 +53,8 @@ jobs:
name: javet-shell-console-linux-windows_x86-64
path: console/build/libs/*.jar

build_jar_for_macos:
name: Build Jar for MacOS
jar_for_macos:
name: Jar for MacOS
runs-on: macos-latest

steps:
Expand Down Expand Up @@ -84,18 +84,15 @@ jobs:
name: javet-shell-console-macos
path: console/build/libs/*.jar

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

steps:

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

- uses: docker-practice/actions-setup-docker@master
timeout-minutes: 12

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand All @@ -106,27 +103,3 @@ 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

- uses: docker-practice/actions-setup-docker@master
timeout-minutes: 12

- 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

0 comments on commit d211f98

Please sign in to comment.