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