You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.0 KiB

---
kind: pipeline
type: docker
name: linux-amd64
platform:
arch: amd64
os: linux
steps:
2 years ago
- name: build
image: mcr.microsoft.com/dotnet/sdk:6.0
commands:
- cd ./build
- chmod 755 ./build.sh
2 years ago
#- ./build.sh
- mkdir publish
2 years ago
- echo "${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}\n">./publish/version.txt
- echo ${DRONE_COMMIT_MESSAGE}>./publish/version.txt
2 years ago
- ls publish
2 years ago
- name: publish
image: plugins/s3
settings:
endpoint: http://dev.ccwin-in.com:3008
path_style: true
bucket: default
access_key: O222sbIaMKeGfeX18t8K
secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR
source: build/publish/**/*
strip_prefix: build/publish/
target: /jie-suan/bei-qi/${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}
2 years ago
2 years ago
- name: stop
image: appleboy/drone-ssh
settings:
host: dev.ccwin-in.com
port: 16085
username: Administrator
password: Microsoft@2022
command_timeout: 10m
script:
2 years ago
- cd /d/BQ-JS/publish
2 years ago
- ./stop.cmd
2 years ago
- sleep 3s
2 years ago
- cd ..
2 years ago
- rm -rf publish
2 years ago
- mkdir publish
2 years ago
# - name: deploy
# image: cupcakearmy/drone-deploy
# settings:
# host: dev.ccwin-in.com
# port: 16085
# user: Administrator
# password: Microsoft@2022
# sources: ./build/publish
# target: /d/BQ-JS/publish
2 years ago
- name: deploy
2 years ago
image: appleboy/drone-ssh
2 years ago
settings:
host: dev.ccwin-in.com
port: 16085
2 years ago
username: Administrator
2 years ago
password: Microsoft@2022
2 years ago
command_timeout: 10m
script:
- rsync
2 years ago
2 years ago
- name: start
image: appleboy/drone-ssh
2 years ago
settings:
2 years ago
host: dev.ccwin-in.com
port: 16085
username: Administrator
password: Microsoft@2022
command_timeout: 10m
script:
2 years ago
- cd /d/BQ-JS/publish
2 years ago
- ./start.cmd
2 years ago
- echo ok