Skip to content

Commit

Permalink
Fix multi-args build-args workflow syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Jul 31, 2022
1 parent 219b7a6 commit c05a0ee
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ jobs:
if: ${{ github.event_name == 'push' && matrix.network == 'mainnet' }}
uses: docker/build-push-action@v2
with:
build-args: NETWORK=${{ matrix.network }}
build-args: |
NETWORK=${{ matrix.network }}
context: .
push: true
tags: ${{ steps.base-variables.outputs.image }}:latest
Expand All @@ -106,7 +107,8 @@ jobs:
if: ${{ github.event_name == 'push' }}
uses: docker/build-push-action@v2
with:
build-args: NETWORK=${{ matrix.network }}
build-args: |
NETWORK=${{ matrix.network }}
context: .
push: true
tags: ${{ steps.base-variables.outputs.image }}:latest-${{ matrix.network }}
Expand All @@ -118,7 +120,8 @@ jobs:
if: ${{ github.event_name == 'push' && matrix.network == 'mainnet' && startsWith(github.ref, 'refs/tags') && matrix.target == 'cardano-node-ogmios' }}
uses: docker/build-push-action@v2
with:
build-args: NETWORK=${{ matrix.network }}
build-args: |
NETWORK=${{ matrix.network }}
context: .
push: true
tags: ${{ steps.base-variables.outputs.image }}:${{ steps.tag-variables.outputs.tag }}_${{ matrix.cardano_node_version }}
Expand All @@ -130,7 +133,9 @@ jobs:
if: ${{ github.event_name == 'push' && matrix.network == 'mainnet' && startsWith(github.ref, 'refs/tags') && matrix.target == 'ogmios' }}
uses: docker/build-push-action@v2
with:
build-args: NETWORK=${{ matrix.network }}, CARDANO_NODE_VERSION=${{ matrix.cardano_node_version }}
build-args: |
NETWORK=${{ matrix.network }}
CARDANO_NODE_VERSION=${{ matrix.cardano_node_version }}
context: .
push: true
tags: ${{ steps.base-variables.outputs.image }}:${{ steps.tag-variables.outputs.tag }}_${{ matrix.cardano_node_version }}
Expand All @@ -142,7 +147,9 @@ jobs:
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && matrix.target == 'cardano-node-ogmios' }}
uses: docker/build-push-action@v2
with:
build-args: NETWORK=${{ matrix.network }}, CARDANO_NODE_VERSION=${{ matrix.cardano_node_version }}
build-args: |
NETWORK=${{ matrix.network }}
CARDANO_NODE_VERSION=${{ matrix.cardano_node_version }}
context: .
push: true
tags: ${{ steps.base-variables.outputs.image }}:${{ steps.tag-variables.outputs.tag }}_${{ matrix.cardano_node_version }}-${{ matrix.network }}
Expand All @@ -154,7 +161,8 @@ jobs:
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && matrix.target == 'ogmios' }}
uses: docker/build-push-action@v2
with:
build-args: NETWORK=${{ matrix.network }}
build-args: |
NETWORK=${{ matrix.network }}
context: .
push: true
tags: ${{ steps.base-variables.outputs.image }}:${{ steps.tag-variables.outputs.tag }}-${{ matrix.network }}
Expand Down

0 comments on commit c05a0ee

Please sign in to comment.