Skip to content

update: update sparrowtool, clear one service or some services #11

update: update sparrowtool, clear one service or some services

update: update sparrowtool, clear one service or some services #11

Workflow file for this run

name: github-ci
on:
push:
branches:
- main
- test
- develop
jobs:
CIManager:
runs-on: ubuntu-latest
env:
PROJECT_NAME: "CIManager"
# ========================= CI =========================
# [stage] = pre
CI_STAGE_PRE_JOB_PRE_CHECK_SWITCH: "ON"
CI_STAGE_PRE_JOB_PRE_CHECK_CMD: ""
CI_STAGE_PRE_JOB_PRE_INSTALL_SWITCH: "ON"
CI_STAGE_PRE_JOB_PRE_INSTALL_CMD: ""
# [stage] = test
CI_STAGE_TEST_JOB_UNIT_TEST_SWITCH: "ON"
CI_STAGE_TEST_JOB_UNIT_TEST_CMD: "cd .work/test && bash run.sh && cd ../../"
CI_STAGE_TEST_JOB_CHECK_CODE_SWITCH: "ON"
CI_STAGE_TEST_JOB_CHECK_CODE_CMD: ""
# [stage] = build
CI_STAGE_BUILD_JOB_LOCAL_BUILD_SWITCH: "ON"
CI_STAGE_BUILD_JOB_LOCAL_BUILD_CMD: ""
CI_STAGE_BUILD_JOB_APIDOC_GEN_SWITCH: "ON"
CI_STAGE_BUILD_JOB_APIDOC_GEN_CMD: ""
# ========================= CD =========================
# [stage] = deploy
CD_STAGE_DEPLOY_JOB_SSH_SWITCH: "ON"
CD_STAGE_DEPLOY_JOB_SSH_CMD: ""
# [stage] = monitor
CD_STAGE_MONITOR_JOB_API_TEST_SWITCH: "ON"
CD_STAGE_MONITOR_JOB_API_TEST_CMD: ""
CD_STAGE_MONITOR_JOB_HEALTH_CHECK_SWITCH: "ON"
CD_STAGE_MONITOR_JOB_HEALTH_CHECK_CMD: ""
CD_STAGE_MONITOR_JOB_HEALTH_CHECK_CMD_RES: "ok"
steps:
- uses: actions/checkout@v1
- run: |
git clone https://github.com/wgrape/CIManager.git && bash ./CIManager/connect.sh
sudo --preserve-env bash .pipeline/start.sh # you can run sudo with the -E/--preserve-env switch, sudo -E/--preserve-env ..., which retains environment variables.