commit 7d4e2d2ce589174b378738b547e2e134a3d778a6 Author: zhaokun Date: Wed Sep 11 20:16:10 2024 +0800 添加 'Home' diff --git a/Home.md b/Home.md new file mode 100644 index 0000000..9d90f22 --- /dev/null +++ b/Home.md @@ -0,0 +1,83 @@ +[root@localhost config]# cat config.toml +concurrent = 5 +check_interval = 0 +shutdown_timeout = 0 + +[session_server] + session_timeout = 1800 + +[[runners]] + name = "docker-runner" + url = "http://192.168.200.4" + id = 2 + token = "glrt-tuJ2maKzCdi6abgz6JHm" + token_obtained_at = 2024-09-01T10:23:04Z + token_expires_at = 0001-01-01T00:00:00Z + executor = "docker" + [runners.custom_build_dir] + [runners.cache] + MaxUploadedArchiveSize = 0 + [runners.cache.s3] + [runners.cache.gcs] + [runners.cache.azure] + [runners.docker] + tls_verify = false + image = "centos:centos7.9.2009" + pull_policy="if-not-present" + privileged = false + disable_entrypoint_overwrite = false + oom_kill_disable = false + disable_cache = false + volumes = ["/cache","/var/run/docker.sock:/var/run/docker.sock"] + shm_size = 0 + network_mtu = 0 + + + stages: # List of stages for jobs, and their order of execution + - install + - build + - deploy + +variables: + DOCKER_IMAGE: node-vuecli:12 + +cache: + - key: $CI_COMMIT_BRANCH + - paths: + - node_modules + +default: + tags: + - test-runner + +install-job: + stage: install + image: $DOCKER_IMAGE + script: + - npm install --registry https://registry.npmmirror.com + +build-job: # This job runs in the build stage, which runs first. + stage: build + image: $DOCKER_IMAGE + script: + - echo "build-jot start" + - npm run build + - echo "build-jot end" + artifacts: + paths: + - dist/ + + +deploy-job: # This job runs in the deploy stage. + stage: deploy # It only runs when *both* jobs in the test stage complete successfully. + image: docker:stable + environment: production + variables: + IMAGE_NAME: qiwei-web + APP_NAME: qiwei + script: + - echo "Deploying application..." + - docker build -t $IMAGE_NAME . + - if [ $(docker ps -qa --filter name=$APP_NAME ) ];then docker rm -f $APP_NAME; fi + - docker run -d -p 8088:80 --name $APP_NAME $IMAGE_NAME + - echo "Application successfully deployed." \ No newline at end of file