diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fa7e3d527b3252fdf1820322957972a940a2f8d7..9a24120ab14bf0ec1e22358c571b096b43bede18 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,11 +23,11 @@ deploy: - if aws cloudformation describe-stacks --stack-name ${STACK_NAME} &> /dev/null - then - echo "stack exists" - - aws cloudformation update-stack --stack-name ${STACK_NAME} --template-body file://aws/api.yaml + - aws cloudformation update-stack --stack-name ${STACK_NAME} --template-body file://aws/beta.ordbok.uib.no_stack.yaml - aws cloudformation wait stack-update-complete --stack-name ${STACK_NAME} - else - echo "creating stack" - - aws cloudformation create-stack --stack-name ${STACK_NAME} --template-body file://aws/api.yaml + - aws cloudformation create-stack --stack-name ${STACK_NAME} --template-body file://aws/beta.ordbok.uib.no_stack.yaml - aws cloudformation wait stack-create-complete --stack-name ${STACK_NAME} - fi - aws s3 rm "s3://${STACK_NAME}.aws.uib.no" --recursive