From 5dc0b9d43cf197a8d2db88545b75bf3698d5e199 Mon Sep 17 00:00:00 2001 From: KMKoushik Date: Sun, 18 Aug 2024 08:28:40 +1000 Subject: [PATCH] Add warp runners to support arm64 --- .github/workflows/publish.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 40b8739..1f04043 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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 @@ -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)" @@ -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