Browse Source

docker

master
zhipeng.hu 1 year ago
parent
commit
bf48632b1c
  1. 7
      .drone.yml

7
.drone.yml

@ -19,6 +19,8 @@ steps:
- go mod init test-drone
- go mod tidy
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o test-drone
when:
target: [ "test","pre" ]
- name: docker-build
image: plugins/docker
@ -29,6 +31,8 @@ steps:
dockerfile: Dockerfile
registry: https://registry.cn-hangzhou.aliyuncs.com
tags: ${DRONE_BUILD_NUMBER}
when:
target: [ "test","pre" ]
# - name: rancher-push
@ -52,3 +56,6 @@ steps:
username: tjqmhu
password: tjqm4912
registry: https://registry.cn-hangzhou.aliyuncs.com
when:
target: [ "test","pre" ]
Loading…
Cancel
Save