Skip to content

Commit

Permalink
Merge pull request #1 from s6n-labs/ci/buildjet
Browse files Browse the repository at this point in the history
ci: Use BuildJet runner
  • Loading branch information
siketyan authored Dec 14, 2023
2 parents 6eb36e4 + 11fee2c commit f11312d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
pull_request: ~
release:
types:
- published
Expand All @@ -28,13 +29,13 @@ jobs:
include:
- architecture: ARM64
platforms: linux/arm64/v8
runner: '["self-hosted", "Linux", "ARM64"]'
runner: buildjet-4vcpu-ubuntu-2204-arm
suffix: arm64
- architecture: X64
platforms: linux/amd64
runner: '"ubuntu-22.04"'
runner: buildjet-4vcpu-ubuntu-2204
suffix: amd64
runs-on: ${{ fromJSON(matrix.runner) }}
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v3

Expand All @@ -51,7 +52,7 @@ jobs:
- name: Build (minimal)
uses: docker/build-push-action@v4
with:
push: true
push: ${{ github.event_name != 'pull_request' }}
provenance: false
file: './${{ matrix.os }}/Dockerfile'
target: 'minimal'
Expand All @@ -64,7 +65,7 @@ jobs:
- name: Build (standard)
uses: docker/build-push-action@v4
with:
push: true
push: ${{ github.event_name != 'pull_request' }}
provenance: false
file: './${{ matrix.os }}/Dockerfile'
target: 'standard'
Expand All @@ -77,7 +78,7 @@ jobs:
- name: Build (dind)
uses: docker/build-push-action@v4
with:
push: true
push: ${{ github.event_name != 'pull_request' }}
provenance: false
file: './${{ matrix.os }}/Dockerfile'
target: 'dind'
Expand Down Expand Up @@ -105,6 +106,7 @@ jobs:
- standard
- dind
runs-on: ubuntu-22.04
if: ${{ github.event_name != 'pull_request' }}
steps:
- name: Log in to GHCR
run: echo "${{ github.token }}" | docker login ghcr.io -u $ --password-stdin
Expand Down

0 comments on commit f11312d

Please sign in to comment.