Skip to content

Commit 3da4c38

Browse files
committed
Add a parameter in test-docker-distribution action to embed or not cardano-cli
1 parent 008e11f commit 3da4c38

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/test-docker-distribution.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ on:
1414
on it otherwise no binary would be available leading to the failure of this workflow.
1515
required: true
1616
type: string
17+
embed_cardano_cli:
18+
description: |
19+
Embed Cardano-cli in the Docker image.
20+
Only needed if you want to use cardano-cli chain observer.
21+
required: true
22+
type: boolean
23+
default: false
1724
cardano_bin_url:
1825
description: The url of the archive of the Cardano binaries
1926
required: true
@@ -90,6 +97,8 @@ jobs:
9097
with:
9198
context: ${{ env.CONTEXT }}
9299
file: ${{ env.DOCKER_FILE }}
93-
build-args: CARDANO_BIN_URL=${{ inputs.cardano_bin_url }}
100+
build-args: |
101+
EMBED-CARDANO-CLI=${{ inputs.embed_cardano_cli && 1 || 0 }}
102+
CARDANO_BIN_URL=${{ inputs.cardano_bin_url }}
94103
push: ${{ inputs.dry_run == false }}
95104
tags: ${{ steps.meta.outputs.tags }}
1.52 KB
Loading

0 commit comments

Comments
 (0)