fixed 测试推送
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
parent
3e7877f600
commit
ecc433d610
@ -1,10 +1,44 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
name: linux-arm
|
||||||
name: master
|
|
||||||
|
|
||||||
trigger:
|
platform:
|
||||||
branch:
|
os: linux
|
||||||
- master
|
arch: arm
|
||||||
event:
|
|
||||||
- push
|
steps:
|
||||||
- merge
|
- name: test
|
||||||
|
image: golang:1.11
|
||||||
|
commands:
|
||||||
|
- go test -v ./...
|
||||||
|
volumes:
|
||||||
|
- name:
|
||||||
|
path: /go
|
||||||
|
- name: build
|
||||||
|
image: golang:1.11
|
||||||
|
commands:
|
||||||
|
- "go build -ldflags \"-extldflags \\\\\"-static\\\\\"\" -o release/linux/arm/Drone-server github.com/Drone/Drone/cmd/Drone-server"
|
||||||
|
volumes:
|
||||||
|
- name:
|
||||||
|
path: /go
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- tag
|
||||||
|
- name: publish_server
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
auto_tag: true
|
||||||
|
auto_tag_suffix: linux-arm
|
||||||
|
dockerfile: docker/Dockerfile.server.linux.arm
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
repo: drone/drone
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- tag
|
||||||
|
volumes:
|
||||||
|
- name:
|
||||||
|
temp: {}
|
||||||
|
Loading…
Reference in new issue