Skip to content

Commit

Permalink
fix: Reduce multi container build action - test arm64 builds using ar…
Browse files Browse the repository at this point in the history
…m based machine
  • Loading branch information
ethenotethan committed Dec 16, 2024
1 parent 2a91388 commit 454f8cd
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/docker-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:

jobs:
docker:
runs-on: linux-2xl
runs-on: linux-xl-arm

steps:
- name: Checkout
Expand Down Expand Up @@ -51,27 +51,12 @@ jobs:
type=raw,value=latest,enable={{is_default_branch}}
type=match,pattern=^(v\d+\.\d+\.\d+-\w*)\..*$,value=$1,enable={{is_default_branch}}
# - name: "Build and push amd64"
# uses: docker/[email protected]
# with:
# target: nitro-node-dev
# context: .
# platforms: linux/amd64
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
# cache-from: type=local,src=/tmp/.buildx-cache
# cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3

- name: "Build and push arm64"
uses: docker/[email protected]
with:
target: nitro-node-dev
context: .
platforms: linux/arm64/v8
platforms: linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit 454f8cd

Please sign in to comment.