123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
-
- kind: pipeline
- type: docker
- name: publish-prod-v1
-
- clone:
- disable: true
- steps:
- - name: publish-prod-v1
- image: scfobao/dronessh:v1
- settings:
- host:
- - 114.132.85.7
-
- username:
- from_secret: SSH_USERNAME
- password:
- from_secret: SSH_PASSWORD
-
- port: 22
- command_timeout: 30m
- script:
- - cd /home/lqh/apps/rcsc-web
- - git fetch --all
- - git reset --hard origin/master
- - docker-compose build
- - docker-compose push
- - docker pull registry.cn-hangzhou.aliyuncs.com/anyu1/rcsc:rcsc_web_prod_latest
- - docker-compose -f /home/lqh/apps-yml/dc-rcsc-api.yaml up -d --force-recreate
- when:
- branch:
- - master
-
-
- ---
- kind: pipeline
- type: docker
- name: publish-test
-
-
- clone:
- disable: true
- steps:
-
-
- - name: publish-test-build-push
- image: scfobao/dronessh:v1
- settings:
- host:
- - 114.132.85.7
- username:
- from_secret: SSH_USERNAME
- password:
- from_secret: SSH_PASSWORD
- port: 22
- command_timeout: 30m
- script:
- - cd /home/lqh/apps/rcsc-web
- - git fetch --all
- - git reset --hard origin/test
- - docker-compose -f docker-compose-test.yml build
- # - docker-compose -f docker-compose-test.yml push
- # - docker pull registry.cn-hangzhou.aliyuncs.com/anyu1/rcsc:rcsc_web_test_latest
- - sleep 1
- - docker-compose -f /home/lqh/apps-yml/dc-rcsc-web.yaml up -d --force-recreate
- - docker system prune -f --filter "label!=17"
- when:
- branch:
- - test
|