add test
All checks were successful
ci / build (amd64) (push) Successful in 4s

This commit is contained in:
2023-08-24 15:47:58 +08:00
parent fc8a8cba77
commit db8a5031bf

View File

@ -34,25 +34,25 @@ jobs:
printenv
# Setup CLI config
./walrus config setup \
--server ${{ secrets.CI_WALRUS_SERVER }} \
--project web \
--environment dev \
--token '${{ secrets.CI_WALRUS_TOKEN }}
# ./walrus config setup \
# --server ${{ secrets.CI_WALRUS_SERVER }} \
# --project web \
# --environment dev \
# --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}" \
-d
# # Build and deploy from source code
# ./walrus service create \
# --name simple-web-service \
# --template '{"name":"deploy-source-code", "version":"v0.0.1"}' \
# --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}"
fi
# # Upgrade deploy
# if [ ! $(echo $?) -eq '0' ];then
# ./walrus service upgrade simple-web-service \
# --template '{"name":"deploy-source-code", "version":"v0.0.1"}' \
# --attributes "${ATTRIBUTES}"
# fi