This commit is contained in:
@ -39,21 +39,21 @@ jobs:
|
||||
--server ${{ secrets.CI_WALRUS_SERVER }} \
|
||||
--project web \
|
||||
--environment dev \
|
||||
--token ${{ secrets.CI_WALRUS_TOKEN }}
|
||||
--token '${{ secrets.CI_WALRUS_TOKEN }}
|
||||
|
||||
|
||||
# Build and deploy from source code
|
||||
./walrus service create \
|
||||
--name simple-web-service \
|
||||
--template '{"name":"deploy-source-code", "version":"v0.0.1"}' \
|
||||
--attributes ${ATTRIBUTES} \
|
||||
--attributes \."${ATTRIBUTES}"\. \
|
||||
-d
|
||||
|
||||
# Upgrade deploy
|
||||
if [ ! $(echo $?) -eq '0' ];then
|
||||
./walrus service upgrade simple-web-service \
|
||||
--template '{"name":"deploy-source-code", "version":"v0.0.1"}' \
|
||||
--attributes ${ATTRIBUTES}
|
||||
--attributes \."${ATTRIBUTES}"\.
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user