build: add quotes around variables in action shell script

This commit is contained in:
Ivan Dyachkov 2022-11-01 16:18:08 +01:00
parent 881a91a788
commit e097ab628e
1 changed files with 3 additions and 3 deletions

View File

@ -55,13 +55,13 @@ runs:
img_suffix="elixir-${{ inputs.arch }}"
img_labels="org.opencontainers.image.elixir.version=${{ inputs.elixir }}\n${img_labels}"
fi
if [ ${{ inputs.profile }} = "emqx" ]; then
if [ "${{ inputs.profile }}" = "emqx" ]; then
img_labels="org.opencontainers.image.edition=Opensource\n${img_labels}"
fi
if [ ${{ inputs.profile }} = "emqx-enterprise" ]; then
if [ "${{ inputs.profile }}" = "emqx-enterprise" ]; then
img_labels="org.opencontainers.image.edition=Enterprise\n${img_labels}"
fi
if [[ ${{ inputs.builder_base }} =~ "alpine" ]]; then
if [[ "${{ inputs.builder_base }}" =~ "alpine" ]]; then
img_suffix="${img_suffix}-alpine"
fi
echo "emqx_name=${emqx_name}" >> $GITHUB_OUTPUT