Skip to content

Commit

Permalink
Add matrix to image generation
Browse files Browse the repository at this point in the history
  • Loading branch information
phillebaba committed Apr 22, 2024
1 parent d0e9866 commit 9479c8a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ permissions:

jobs:
release:
strategy:
matrix:
image_size: [10 MB, 100 MB, 1 GB]
layer_count: [1, 5]
runs-on: ubuntu-latest
steps:
- name: Setup benchmark
Expand All @@ -22,6 +26,6 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Generate image
run: benchmark generate --layer-count 1 --image-size "10 MB" --image-name ghcr.io/spegel-org/benchmark:10MB-1
run: benchmark generate --layer-count ${{ matrix.layer_count }} --image-size ${{ matrix.image_size }} --image-name ghcr.io/${{ github.repository_owner }}/benchmark:v1-${{ matrix.image_size }}-${{ matrix.layer_count }}
- name: Publish image
run: docker push ghcr.io/spegel-org/benchmark:10MB-1
run: docker push ghcr.io/${{ github.repository_owner }}/benchmark:v1-${{ matrix.image_size }}-${{ matrix.layer_count }}

0 comments on commit 9479c8a

Please sign in to comment.