Skip to content

Commit

Permalink
fix(build): Lowers concurrency for container jobs to 1 (#59)
Browse files Browse the repository at this point in the history
Co-authored-by: ruby-automation <[email protected]>
  • Loading branch information
bougyman and ruby-automation committed Jun 3, 2024
1 parent b1b6a2f commit 70c1c56
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ jobs:
name: Publish the container image to GitHub Container Registry
runs-on: ubuntu-latest
strategy:
# Go easy on the builders
max-parallel: 1
matrix:
alpine-version: ['3.18', '3.19', '3.20']
ruby-version: ['3.3.0', '3.3.1', '3.3.2']
alpine-version: ['3.19', '3.20']
ruby-version: ['3.3.1', '3.3.2']
include:
- alpine-version: '3.19'
ruby-version: '3.3.0'
steps:
-
name: Checkout repository
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/gem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
registry: [rubygems, github]
registry:
- key: rubygems
secret: ${{ secrets.GEM_TOKEN_RUBYGEMS }}
- key: github
secret: ${{ secrets.GEM_TOKEN_GITHUB }}
steps:
-
name: Checkout repository
Expand All @@ -24,8 +28,8 @@ jobs:
name: Publish to ${{ matrix.registry }}
env:
TRACE: ${{ secrets.ACTIONS_STEP_DEBUG || 'false' }}
GEM_TOKEN: ${{ secrets.GEM_TOKEN_GITHUB }}
REGISTRY: ${{ matrix.registry }}
GEM_TOKEN: ${{ matrix.registry.secret }}
REGISTRY_KEY: ${{ matrix.registry.key }}
run: |
TRACE="$TRACE" GEM_TOKEN=$GEM_TOKEN ./ci/publish-gem.sh "$REGISTRY"
TRACE="$TRACE" GEM_TOKEN=$GEM_TOKEN ./ci/publish-gem.sh "$REGISTRY_KEY"
shell: bash

0 comments on commit 70c1c56

Please sign in to comment.