Skip to content

Commit

Permalink
Switch to Depot for Arm image build (windmill-labs#1104)
Browse files Browse the repository at this point in the history
* switch to Depot for native arm builds without emulation

* set Depot project id
  • Loading branch information
kylegalbraith authored Jan 15, 2023
1 parent e0d02e8 commit c136d79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/docker-image-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ concurrency:
group: ${{ github.ref }}-arm
cancel-in-progress: true

permissions:
contents: read
id-token: write

jobs:
publish_arm:
runs-on: [self-hosted, new]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- uses: depot/setup-action@v1

- name: Docker meta
id: meta-slim-public
Expand All @@ -47,7 +47,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push publicly
uses: docker/build-push-action@v3
uses: depot/build-push-action@v1
with:
context: .
push: true
Expand All @@ -58,5 +58,3 @@ jobs:
labels: |
${{ steps.meta-slim-public.outputs.labels }}
org.opencontainers.image.licenses=AGPLv3
cache-from: type=registry,ref=${{ env.LOCAL_REGISTRY }}/${{ env.IMAGE_NAME }}-arm:buildcache
cache-to: type=registry,ref=${{ env.LOCAL_REGISTRY }}/${{ env.IMAGE_NAME }}-arm:buildcache,mode=max
1 change: 1 addition & 0 deletions depot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "id": "00zvxx9420" }

0 comments on commit c136d79

Please sign in to comment.