Skip to content

Commit

Permalink
chore: accelerate docker workflow with cirun
Browse files Browse the repository at this point in the history
  • Loading branch information
wangeguo committed Jan 15, 2024
1 parent 1b8f4e4 commit cffc39b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .cirun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
runners:
- name: "aws-amd64-runner"
cloud: "aws"
instance_type: "t2.xlarge"
machine_image: "ami-0c7217cdde317cfec"
region: "us-east-1"
preemptible: false
labels:
- "cirun-aws-amd64"
- name: "aws-arm64-runner"
cloud: "aws"
instance_type: "t4g.xlarge"
machine_image: "ami-05d47d29a4c2d19e1"
region: "us-east-1"
preemptible: false
labels:
- "cirun-aws-arm64"
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ permissions:
jobs:
build:
name: Build Image
runs-on: "cirun-aws-t2-large-ubuntu2204--${{ github.run_id }}"
runs-on: "cirun-aws-${{ matrix.platform }}--${{ github.run_id }}"
strategy:
fail-fast: false
matrix:
platform: [linux/amd64, linux/arm64]
platform: [amd64, arm64]
bin: [amp-apiserver, amp-controllers, amp-syncer]
include:
- bin: amp-apiserver
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
with:
context: .
file: ${{ matrix.dockerfile }}
platforms: ${{ matrix.platform }}
platforms: linux/${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=true
provenance: false
Expand Down

0 comments on commit cffc39b

Please sign in to comment.