build: add quotes around variables in action shell script
This commit is contained in:
parent
881a91a788
commit
e097ab628e
|
@ -55,13 +55,13 @@ runs:
|
||||||
img_suffix="elixir-${{ inputs.arch }}"
|
img_suffix="elixir-${{ inputs.arch }}"
|
||||||
img_labels="org.opencontainers.image.elixir.version=${{ inputs.elixir }}\n${img_labels}"
|
img_labels="org.opencontainers.image.elixir.version=${{ inputs.elixir }}\n${img_labels}"
|
||||||
fi
|
fi
|
||||||
if [ ${{ inputs.profile }} = "emqx" ]; then
|
if [ "${{ inputs.profile }}" = "emqx" ]; then
|
||||||
img_labels="org.opencontainers.image.edition=Opensource\n${img_labels}"
|
img_labels="org.opencontainers.image.edition=Opensource\n${img_labels}"
|
||||||
fi
|
fi
|
||||||
if [ ${{ inputs.profile }} = "emqx-enterprise" ]; then
|
if [ "${{ inputs.profile }}" = "emqx-enterprise" ]; then
|
||||||
img_labels="org.opencontainers.image.edition=Enterprise\n${img_labels}"
|
img_labels="org.opencontainers.image.edition=Enterprise\n${img_labels}"
|
||||||
fi
|
fi
|
||||||
if [[ ${{ inputs.builder_base }} =~ "alpine" ]]; then
|
if [[ "${{ inputs.builder_base }}" =~ "alpine" ]]; then
|
||||||
img_suffix="${img_suffix}-alpine"
|
img_suffix="${img_suffix}-alpine"
|
||||||
fi
|
fi
|
||||||
echo "emqx_name=${emqx_name}" >> $GITHUB_OUTPUT
|
echo "emqx_name=${emqx_name}" >> $GITHUB_OUTPUT
|
||||||
|
|
Loading…
Reference in New Issue