Skip to content

Commit

Permalink
Merge pull request #2239 from TEAMSchools/ci-multi-runner
Browse files Browse the repository at this point in the history
ci: use different runners
  • Loading branch information
cbini authored Dec 2, 2024
2 parents af83709 + 0766541 commit 3923564
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Configuration related to self-hosted runner.
self-hosted-runner:
# Labels of self-hosted runner in array of string.
labels:
- linux-amd64
- linux-arm64
20 changes: 10 additions & 10 deletions .github/workflows/dagster-cloud-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@ jobs:
build:
needs:
- prerun
runs-on: ubuntu-latest
if: needs.prerun.outputs.result != 'skip'
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
runner:
- linux-amd64
- linux-arm64
runs-on: ${{ matrix.runner }}
steps:
- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> "${GITHUB_ENV}"
runner=${{ matrix.runner }}
echo "PLATFORM_PAIR=${runner//-//}" >> "${GITHUB_ENV}"
# https://github.com/actions/checkout
- uses: actions/checkout@v4
Expand Down Expand Up @@ -106,9 +106,9 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
cache-from: type=gha,scope=build-${{ env.PLATFORM_PAIR }}
cache-to: type=gha,mode=max,scope=build-${{ env.PLATFORM_PAIR }}
platforms: ${{ matrix.platform }}
cache-from: type=gha,scope=build-${{ matrix.runner }}
cache-to: type=gha,mode=max,scope=build-${{ matrix.runner }}
platforms: ${{ env.PLATFORM_PAIR }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
PYTHON_VERSION=${{ inputs.python-version }}
Expand All @@ -127,7 +127,7 @@ jobs:
- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-${{ env.PLATFORM_PAIR }}
name: digests-${{ matrix.runner }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down

0 comments on commit 3923564

Please sign in to comment.