Skip to content

Commit

Permalink
Expand Docker build matrix in Github Actions workflow (#110)
Browse files Browse the repository at this point in the history
The publish.yml file has been updated to expand the build matrix for the
Docker job. This now includes three platforms: linux/amd64,
linux/arm64/v8, and linux/386. In addition, the platform names have been
updated to use the matrix platform values, increasing the flexibility of
the workflow configuration.
  • Loading branch information
SmetDenis committed Mar 29, 2024
1 parent 9897580 commit 46be63a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

jobs:
phar:
name: Publish PHAR
name: PHAR
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -47,8 +47,14 @@ jobs:
./build/csv-blueprint.phar
docker:
name: Publish Docker
name: Docker
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- linux/amd64
- linux/arm64/v8
- linux/386
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -76,7 +82,7 @@ jobs:
tags: |
jbzoo/csv-blueprint:latest
jbzoo/csv-blueprint:${{ github.event.release.tag_name }}
platforms: linux/amd64,linux/arm64/v8,linux/386
platforms: ${{ matrix.platform }}
build-args: |
VERSION=${{ github.event.release.tag_name }}
Expand Down

0 comments on commit 46be63a

Please sign in to comment.