feat: update -2
Some checks failed
ci / build (amd64) (push) Failing after 3s

This commit is contained in:
cdryzun 2023-08-24 18:47:47 +08:00
parent dc1c9f2175
commit 147bf99abd

View File

@ -30,18 +30,15 @@ jobs:
--environment dev \
--token '${{ secrets.CI_WALRUS_TOKEN }}
# set env
export 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\": \"${CI_REGISTRY_PASSWORD}\", \"image\": \"harbor.treesir.pub/yangzun/gitea-simple-web-service:${CI_COMMIT_SHA}\", \"namespace\": \"default\", \"name\": \"gitea-simple-web-service\", \"ports\": [8080] }"
./walrus service upgrade gitea-simple-web-service \
--template '{"name":"deploy-source-code", "version":"v0.0.1"}' \
--attributes "$ATTRIBUTES" \
--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": "harbor.treesir.pub/yangzun/gitea-simple-web-service:${{ github.sha }}", "namespace": "default", "name": "gitea-simple-web-service", "ports": [8080] }'
./walrus service create \
--name gitea-simple-web-service \
--template '{"name":"deploy-source-code", "version":"v0.0.1"}' \
--attributes "$ATTRIBUTES" \
--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": "harbor.treesir.pub/yangzun/gitea-simple-web-service:${{ github.sha }}", "namespace": "default", "name": "gitea-simple-web-service", "ports": [8080] }' \
-d