Skip to content

Commit

Permalink
Refactor Github Actions workflow for clarity and flexibility (#111)
Browse files Browse the repository at this point in the history
Changes have been made in the publish.yml of the Github Actions workflow
for better readability and flexibility. Specifically, Docker's build
matrix has been expanded and it now includes three platforms:
linux/amd64, linux/arm64/v8, and linux/386. Moreover, the job names have
been updated to more clearly reflect their operations.
  • Loading branch information
SmetDenis authored Mar 29, 2024
1 parent 46be63a commit 616337a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 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: PHAR
name: Publish PHAR
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -47,14 +47,8 @@ jobs:
./build/csv-blueprint.phar
docker:
name: Docker
name: Publish 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 @@ -82,7 +76,7 @@ jobs:
tags: |
jbzoo/csv-blueprint:latest
jbzoo/csv-blueprint:${{ github.event.release.tag_name }}
platforms: ${{ matrix.platform }}
platforms: linux/amd64,linux/arm64/v8,linux/386
build-args: |
VERSION=${{ github.event.release.tag_name }}
Expand Down

0 comments on commit 616337a

Please sign in to comment.