This commit is contained in:
@ -23,10 +23,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: |
|
run: |
|
||||||
# # Set Run envlist
|
|
||||||
# export ATTRIBUTES=
|
|
||||||
|
|
||||||
|
|
||||||
# Setup CLI config
|
# Setup CLI config
|
||||||
./walrus config setup \
|
./walrus config setup \
|
||||||
--server ${{ secrets.CI_WALRUS_SERVER }} \
|
--server ${{ secrets.CI_WALRUS_SERVER }} \
|
||||||
@ -34,15 +30,17 @@ jobs:
|
|||||||
--environment dev \
|
--environment dev \
|
||||||
--token '${{ secrets.CI_WALRUS_TOKEN }}
|
--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 \
|
./walrus service upgrade gitea-simple-web-service \
|
||||||
--template '{"name":"deploy-source-code", "version":"v0.0.1"}' \
|
--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] }'
|
--attributes "$ATTRIBUTES" \
|
||||||
|
|
||||||
# Build and deploy from source code
|
|
||||||
./walrus service create \
|
./walrus service create \
|
||||||
--name gitea-simple-web-service \
|
--name gitea-simple-web-service \
|
||||||
--template '{"name":"deploy-source-code", "version":"v0.0.1"}' \
|
--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] }' \
|
--attributes "$ATTRIBUTES" \
|
||||||
-d
|
-d
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user