Skip to content

Commit

Permalink
Set up Docker build for linux/amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
tomyun committed Aug 15, 2023
1 parent 15a1d20 commit f4cc37a
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docker-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: docker-arm
on: [push]
env:
REPO_DIR: /home/Cropbox.jl
IMAGE_NAME: cropbox/cropbox-arm
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: easimon/maximize-build-space@v6
with:
overprovision-lvm: 'true'
remove-dotnet: 'true'
remove-android: 'true'
- uses: actions/checkout@v3
- uses: rlespinasse/github-slug-action@v4
- uses: docker/metadata-action@v4
with:
images: ${{ env.IMAGE_NAME }}
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/build-push-action@v4
with:
context: .
file: .binder/Dockerfile
build-args: REPO_DIR=${{ env.REPO_DIR}}
platforms: linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=true

0 comments on commit f4cc37a

Please sign in to comment.