This commit is contained in:
@ -26,9 +26,6 @@ jobs:
|
||||
# # Set Run envlist
|
||||
# export ATTRIBUTES=
|
||||
|
||||
# test
|
||||
# echo "$ATTRIBUTES"
|
||||
# printenv
|
||||
|
||||
# Setup CLI config
|
||||
./walrus config setup \
|
||||
@ -37,17 +34,16 @@ jobs:
|
||||
--environment dev \
|
||||
--token '${{ secrets.CI_WALRUS_TOKEN }}
|
||||
|
||||
# # Build and deploy from source code
|
||||
./walrus service upgrade gitea-simple-web-service \
|
||||
--template '{"name":"deploy-source-code", "version":"v0.0.1"}' \
|
||||
--attributes '{ "git_url": "https://git.treesir.pub/demoTest/simple-web-service", "git_branch": "main", "git_auth": false, "registry_auth": true, "registry_username": "yangzun", "registry_password": "${{ secrets.CI_REGISTRY_PASSWORD }}", "image": "yangzun/simple-web-service:${{ github.sha }}", "namespace": "default", "name": "simple-web-service", "ports": [8080] }'
|
||||
|
||||
# Build and deploy from source code
|
||||
./walrus service create \
|
||||
--name simple-web-service \
|
||||
--name gitea-simple-web-service \
|
||||
--template '{"name":"deploy-source-code", "version":"v0.0.1"}' \
|
||||
--attributes '{ "git_url": "https://git.treesir.pub/demoTest/simple-web-service", "git_branch": "main", "git_auth": false, "registry_auth": true, "registry_username": "yangzun", "registry_password": "${{ secrets.CI_REGISTRY_PASSWORD }}", "image": "yangzun/simple-web-service:${{ github.sha }}", "namespace": "default", "name": "simple-web-service", "ports": [8080] }' \
|
||||
-d
|
||||
|
||||
if [[ ! "$(echo $?)" -eq '0' ]];then
|
||||
./walrus service upgrade simple-web-service \
|
||||
--template '{"name":"deploy-source-code", "version":"v0.0.1"}' \
|
||||
--attributes '{ "git_url": "https://git.treesir.pub/demoTest/simple-web-service", "git_branch": "main", "git_auth": false, "registry_auth": true, "registry_username": "yangzun", "registry_password": "${{ secrets.CI_REGISTRY_PASSWORD }}", "image": "yangzun/simple-web-service:${{ github.sha }}", "namespace": "default", "name": "simple-web-service", "ports": [8080] }'
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user