Skip to content

Commit

Permalink
chore(Release) - Run release workflow on github hosted arm runner (#2569
Browse files Browse the repository at this point in the history
)

## Description

Github made arm runner GA 7 days ago. in order to simply our process,
let's leverage it to build the release image.
  • Loading branch information
nudded committed Sep 11, 2024
1 parent 87811e1 commit 100b231
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 138 deletions.
132 changes: 0 additions & 132 deletions .github/workflows/release-github-hosted.yml

This file was deleted.

14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ jobs:
strategy:
matrix:
platform:
- linux/amd64
- linux/arm64
name: Build ${{ matrix.platform }} Image
runs-on: ${{ matrix.platform }}
- version: linux/amd64
runner: linux/amd64
- version: linux/arm64
runner: linux-arm64
name: Build ${{ matrix.platform.version }} Image
runs-on: ${{ matrix.platform.runner }}
steps:
- name: Prepare
run: |
platform=${{ matrix.platform }}
platform=${{ matrix.platform.version }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Checkout Repository
Expand Down Expand Up @@ -57,7 +59,7 @@ jobs:
id: build
with:
context: .
platforms: ${{ matrix.platform }}
platforms: ${{ matrix.platform.version }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
build-args: |
Expand Down

0 comments on commit 100b231

Please sign in to comment.