Skip to content

Commit

Permalink
Add warp runners to support arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
KMKoushik committed Aug 17, 2024
1 parent 9fb7032 commit 5dc0b9d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ on:
jobs:
build_and_publish_platform_containers:
name: Build and publish platform containers
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
permissions:
packages: write
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
os:
- warp-ubuntu-latest-x64-2x
- warp-ubuntu-latest-arm64-2x

steps:
- uses: actions/checkout@v4
Expand All @@ -47,7 +47,7 @@ jobs:

- name: Build the docker image
env:
BUILD_PLATFORM: ${{ matrix.platform == 'linux/arm64' && 'arm64' || 'amd64' }}
BUILD_PLATFORM: ${{ matrix.os == 'warp-ubuntu-latest-arm64-2x' && 'arm64' || 'amd64' }}
run: |
APP_VERSION="$(git name-rev --tags --name-only $(git rev-parse HEAD) | head -n 1 | sed 's/\^0//')"
GIT_SHA="$(git rev-parse HEAD)"
Expand All @@ -66,12 +66,12 @@ jobs:
- name: Push the docker image to DockerHub
run: docker push --all-tags "ossapps/splitpro-$BUILD_PLATFORM"
env:
BUILD_PLATFORM: ${{ matrix.platform == 'linux/arm64' && 'arm64' || 'amd64' }}
BUILD_PLATFORM: ${{ matrix.os == 'warp-ubuntu-latest-arm64-2x' && 'arm64' || 'amd64' }}

- name: Push the docker image to GitHub Container Registry
run: docker push --all-tags "ghcr.io/oss-apps/splitpro-$BUILD_PLATFORM"
env:
BUILD_PLATFORM: ${{ matrix.platform == 'linux/arm64' && 'arm64' || 'amd64' }}
BUILD_PLATFORM: ${{ matrix.os == 'warp-ubuntu-latest-arm64-2x' && 'arm64' || 'amd64' }}

create_and_publish_manifest:
name: Create and publish manifest
Expand Down

0 comments on commit 5dc0b9d

Please sign in to comment.