Fix bash conditional syntax

God I hate bash!
This commit is contained in:
Jake Howard 2022-08-27 19:02:13 +01:00
parent 6272307e35
commit e6ee7d475a
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -151,7 +151,7 @@ container:
- docker build --target production -t $DEV_IMAGE_TAG . - docker build --target production -t $DEV_IMAGE_TAG .
- docker push $DEV_IMAGE_TAG - docker push $DEV_IMAGE_TAG
- > - >
if [ "$CI_COMMIT_REF_SLUG" == "master"]; then if [ "$CI_COMMIT_REF_SLUG" == "master" ]; then
docker tag $DEV_IMAGE_TAG $PROD_IMAGE_TAG docker tag $DEV_IMAGE_TAG $PROD_IMAGE_TAG
docker push $PROD_IMAGE_TAG docker push $PROD_IMAGE_TAG
else else