Skip to content

Commit

Permalink
Adding build for arm64 using depot
Browse files Browse the repository at this point in the history
  • Loading branch information
tuler committed May 17, 2023
1 parent abafbde commit 011bb49
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -832,10 +832,6 @@ jobs:
type=ref,event=branch
type=semver,pattern={{version}}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
Expand All @@ -849,20 +845,20 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: depot/setup-action@v1
- name: Build Debian based docker image
id: debian_docker_build
uses: docker/build-push-action@v2
uses: depot/build-push-action@v1
with:
file: .github/workflows/Dockerfile
context: .
builder: ${{ steps.buildx.outputs.name }}
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
tags: ${{ steps.debian_docker_image_tags.outputs.tags }}
push: true
load: false
cache-from: type=gha,mode=max,scope=debian
cache-to: type=gha,scope=debian
build-args: RELEASE=${{ (startsWith(github.ref, 'refs/tags/v') && 'yes' || 'no') }}
project: ${{ vars.DEPOT_PROJECT }}
token: ${{ secrets.DEPOT_TOKEN }}

release:
name: Release machine emulator tarball
Expand Down

0 comments on commit 011bb49

Please sign in to comment.