mirror of
https://github.com/morbalint/kemkas-deployment.git
synced 2026-07-17 22:03:46 +00:00
ci: fix backend deployment bash exit syntax
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user