Switch to Depot for Arm image build (#1104)

* switch to Depot for native arm builds without emulation

* set Depot project id
This commit is contained in:
Kyle Galbraith
2023-01-15 08:55:25 -08:00
committed by GitHub
parent e0d02e8f40
commit c136d79533
2 changed files with 8 additions and 9 deletions

View File

@@ -13,19 +13,19 @@ concurrency:
group: ${{ github.ref }}-arm group: ${{ github.ref }}-arm
cancel-in-progress: true cancel-in-progress: true
permissions:
contents: read
id-token: write
jobs: jobs:
publish_arm: publish_arm:
runs-on: [self-hosted, new] runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up QEMU - uses: depot/setup-action@v1
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker meta - name: Docker meta
id: meta-slim-public id: meta-slim-public
@@ -47,7 +47,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push publicly - name: Build and push publicly
uses: docker/build-push-action@v3 uses: depot/build-push-action@v1
with: with:
context: . context: .
push: true push: true
@@ -58,5 +58,3 @@ jobs:
labels: | labels: |
${{ steps.meta-slim-public.outputs.labels }} ${{ steps.meta-slim-public.outputs.labels }}
org.opencontainers.image.licenses=AGPLv3 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
depot.json Normal file
View File

@@ -0,0 +1 @@
{ "id": "00zvxx9420" }