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.

98 lines
2.5 KiB

---
kind: pipeline
type: docker
name: linux-amd64
platform:
arch: amd64
os: linux
steps:
1 year ago
- name: build
image: mcr.microsoft.com/dotnet/sdk:6.0
1 year ago
privileged: true
1 year ago
commands:
- cd ./build
- chmod 755 ./build.sh
1 year ago
- ./build.sh
1 year 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
1 year ago
- dotnet nuget locals global-packages --list
1 year 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}
1 year ago
1 year ago
- name: stop
image: appleboy/drone-ssh
settings:
host: dev.ccwin-in.com
port: 16085
username: Administrator
password: Microsoft@2022
command_timeout: 10m
script:
1 year ago
- mkdir -p /d/BQ-JS/publish
1 year ago
- cd /d/BQ-JS/publish
1 year ago
- cmd.exe -k stop.cmd
1 year ago
- sleep 3s
1 year ago
- cd ..
1 year ago
- rm -rf publish
1 year ago
- mkdir -p publish
1 year ago
1 year ago
- name: deploy-ftp
image: cschlosser/drone-ftps
1 year ago
environment:
PLUGIN_HOSTNAME: dev.ccwin-in.com:16022
FTP_USERNAME:
from_secret: username
FTP_PASSWORD:
from_secret: password
1 year ago
PLUGIN_SRC_DIR: /build/publish
1 year ago
PLUGIN_DEST_DIR: /publish
PLUGIN_SECURE: false
1 year ago
PLUGIN_CHMOD: false
1 year ago
- name: start
image: appleboy/drone-ssh
1 year ago
settings:
1 year ago
host: dev.ccwin-in.com
port: 16085
username: Administrator
password: Microsoft@2022
command_timeout: 10m
script:
1 year ago
- cd /d/BQ-JS/publish
1 year ago
- cmd.exe -k start.cmd
1 year ago
1 year ago
# - name: deploy-scp
# image: appleboy/drone-scp
# settings:
# host: dev.ccwin-in.com
# port: 16085
# username: Administrator
# password: Microsoft@2022
# source: build/publish
# target: /d/BQ-JS/publish
# timeout: 1800s
# command_timeout: 30m
# - name: deploy-sftp
# image: axute/drone-sftp
# settings:
# host: dev.ccwin-in.com
# port: 16085
# username: Administrator
# password: Microsoft@2022
# source: build/publish
# target: /d/BQ-JS/publish
# strip_components: 2