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 0cf8a6c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/docker-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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: jupyterhub/repo2docker-action@master
with:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
REPO_DIR: "/home/Cropbox.jl"
IMAGE_NAME: "cropbox/cropbox"
LATEST_TAG_OFF: true
ADDITIONAL_TAG: ${{ env.GITHUB_REF_SLUG }}
- 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: .
platforms: linux/arm64
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 0cf8a6c

Please sign in to comment.