diff --git a/.drone.yml b/.drone.yml index c6587f7..a58099e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,30 +9,30 @@ volumes: path: /usr/local/path/gopath steps: - - name: golang-build - image: golang - volumes: - - name: gopath - path: /go - commands: - - export GOPROXY=https://goproxy.cn - - go mod init test-drone - - go mod tidy - - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o test-drone - when: - target: [ "" ] - - - name: docker-push - image: plugins/docker - settings: - username: tjqmhu - password: tjqm4912 - repo: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone - dockerfile: Dockerfile - registry: https://registry.cn-hangzhou.aliyuncs.com - tags: ${DRONE_BUILD_NUMBER} - when: - target: [ "" ] +# - name: golang-build +# image: golang +# volumes: +# - name: gopath +# path: /go +# commands: +# - export GOPROXY=https://goproxy.cn +# - go mod init test-drone +# - go mod tidy +# - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o test-drone +# when: +# target: [ "" ] +# +# - name: docker-push +# image: plugins/docker +# settings: +# username: tjqmhu +# password: tjqm4912 +# repo: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone +# dockerfile: Dockerfile +# registry: https://registry.cn-hangzhou.aliyuncs.com +# tags: ${DRONE_BUILD_NUMBER} +# when: +# target: [ "" ] - name: rancher-deploy # drone-rancher插件,利用此插件来启动rancher @@ -44,7 +44,7 @@ steps: secret_key: wt46cz8x8xqz5t7x27htzdc46tscvpnzwzlj9gp99j2cbdrqhtcj25 service: default/drone-test # 为了使rancher能拉取到私有镜像, 需要在rancher控制面板"基础架构->镜像库"添加这个私有镜像库 - docker_image: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} + docker_image: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:20 # - name: rancher-deploy # image: peloton/drone-rancher