ci: fix backend deployment bash exit syntax

This commit is contained in:
2024-03-16 13:43:08 +01:00
parent b096b8bbfe
commit 13dded8f20
+3 -3
View File
@@ -22,15 +22,15 @@ jobs:
if [ -n "${{ inputs.backend_image }}" ]; then if [ -n "${{ inputs.backend_image }}" ]; then
echo "Image from INPUT" echo "Image from INPUT"
echo "IMAGE=${{ inputs.backend_image }}" >> $GITHUB_ENV echo "IMAGE=${{ inputs.backend_image }}" >> $GITHUB_ENV
return 0; exit 0;
fi fi
if [ -n "${{ steps.get_beta_image.outputs.result }}" ]; then if [ -n "${{ steps.get_beta_image.outputs.result }}" ]; then
echo "Image from BETA" echo "Image from BETA"
echo "IMAGE=${{ steps.get_beta_image.outputs.result }}" >> $GITHUB_ENV echo "IMAGE=${{ steps.get_beta_image.outputs.result }}" >> $GITHUB_ENV
return 0; exit 0;
fi fi
echo "Image NOT SET !!!"; echo "Image NOT SET !!!";
return 1; exit 1;
- run: echo "deployment image will be set to ${{ env.IMAGE }}" - run: echo "deployment image will be set to ${{ env.IMAGE }}"
- uses: mikefarah/yq@v4 - uses: mikefarah/yq@v4
with: with: