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.4 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
commands:
- cd ./build
- pwd
- ls
- chmod 755 ./build.sh
# - ./build.sh
- mkdir publish
- echo "${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}">./publish/version.txt
- ls publish
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
- scp help
1 year ago
- cd D:/BQ-JS/test
1 year ago
# - stop.cmd
- cd ..
- rm test -Recurse
1 year ago
1 year ago
# - name: deploy
1 year ago
# image: cschlosser/drone-ftps
# environment:
# FTP_USERNAME: Administrator
# FTP_PASSWORD: Microsoft@2022
# PLUGIN_SECURE: false
# PLUGIN_VERIFY: false
# PLUGIN_HOSTNAME: sftp://dev.ccwin-in.com:16085
# PLUGIN_SRC_DIR: /build/publish
# PLUGIN_DEST_DIR: D:/BQ-JS/test
# PLUGIN_AUTO_CONFIRM: true
# PLUGIN_DEBUG: true
# PLUGIN_ONLY_NEWER: true
- name: deploy
image: appleboy/drone-scp
settings:
host: dev.ccwin-in.com
port: 16085
username: Administrator
password: Microsoft@2022
command_timeout: 10m
1 year ago
target: D:\BQ-JS\test
1 year ago
source: build/publish
1 year ago
# - name: deploy
# image: atmoz/sftp
# settings:
# host: dev.ccwin-in.com
# port: 16085
# username:
# from_secret: username
# password:
# from_secret: password
1 year ago
# source: build/publish
1 year ago
# target: D:/BQ-JS/test
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/test
1 year ago
# - start.cmd
# - echo ok