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.

76 lines
1.7 KiB

---
kind: pipeline
type: docker
name: linux-amd64
platform:
arch: amd64
os: linux
steps:
- name: build
1 year ago
image: mcr.microsoft.com/dotnet/sdk:6.0
commands:
1 year ago
- cd ./build
1 year ago
- pwd
1 year ago
- ls
1 year ago
- chmod 755 ./build.sh
1 year ago
# - ./build.sh
- mkdir publish
- echo "${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}">./publish/version.txt
1 year ago
- 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
1 year ago
image: appleboy/drone-ssh
settings:
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
# - stop.cmd
1 year ago
- cd ..
1 year ago
- ls
- rm test -Recurse
- ls
1 year ago
# - name: deploy
# image: appleboy/drone-scp
# settings:
# host: dev.ccwin-in.com
# port: 16085
# username: Administrator
# password: Microsoft@2022
# command_timeout: 10m
# target: /D D:/BQ-JS/publish
# source: ./build/publish
# overwrite: true
# - name: start
# image: appleboy/drone-ssh
# settings:
# host: dev.ccwin-in.com
# port: 16085
# username: Administrator
# password: Microsoft@2022
# command_timeout: 10m
# script:
# - d:
# - cd D:\BQ-JS\publish
# - start.cmd
# - echo ok