fixed 测试推送
continuous-integration/drone/push Build was killed Details

master
zhangjinli 2 years ago
parent 3e7877f600
commit ecc433d610

@ -1,10 +1,44 @@
kind: pipeline
type: docker
name: master
name: linux-arm
trigger:
branch:
- master
platform:
os: linux
arch: arm
steps:
- 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
- merge
- tag
volumes:
- name:
temp: {}

Loading…
Cancel
Save