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.

38 lines
963 B

kind: pipeline
type: docker
name: default
platform:
arch: amd64
os: linux
steps:
- name: build_golang
image: golang:1.16.4-buster
commands:
- export SRC=$DRONE_WORKSPACE
- chmod 755 $SRC/docker/docker-compose.build.sh
- $SRC/docker/docker-compose.build.sh
- echo ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}>version
# - name: deploy
# image: appleboy/drone-scp:linux-amd64
# settings:
# host: 10.10.14.176
# port: 22
# username: root
# password: dsideal
# target: /root/publish/bigdata
# source: ./docker
# rm: false
# - name: restart
# image: appleboy/drone-ssh:linux-amd64
# settings:
# host: 10.10.14.176
# port: 22
# username: root
# password: dsideal
# script:
# - cd /root/publish/bigdata/docker
# - chmod 755 start.sh
# - chmod 755 stop.sh
# - ./start.sh