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

master
zhangjinli 2 years ago
parent ecc433d610
commit 681b8b71c7

@ -1,44 +1,60 @@
kind: pipeline kind: pipeline
name: linux-arm type: docker
name: master
platform:
os: linux
arch: arm
steps: steps:
- name: test - name: restore-cache
image: golang:1.11 image: meltwater/drone-cache
commands: settings:
- go test -v ./... backend: filesystem
volumes: restore: true
- name: cache_key: "maven"
path: /go archive_format: gzip
- name: build filesystem_cache_root: "/var/lib/cache"
image: golang:1.11 mount:
commands: - "maven"
- "go build -ldflags \"-extldflags \\\\\"-static\\\\\"\" -o release/linux/arm/Drone-server github.com/Drone/Drone/cmd/Drone-server" volumes:
volumes: - name: cache
- name: path: "/var/lib/cache"
path: /go # Do stuff..
when: - name: build
event: image: maven:3.8-openjdk-8
- push commands:
- tag - mkdir /root/.m2
- name: publish_server - cp /usr/share/maven/ref/settings-docker.xml /root/.m2/settings.xml
image: plugins/docker - sed -i 's/\\/usr\\/share\\/maven\\/ref\\/repository/\\/drone\\/src\\/maven/g' /root/.m2/settings.xml
settings: - mvn package
auto_tag: true - name: rebuild-cache
auto_tag_suffix: linux-arm image: meltwater/drone-cache
dockerfile: docker/Dockerfile.server.linux.arm settings:
password: backend: filesystem
from_secret: docker_password rebuild: true
repo: drone/drone cache_key: "maven"
username: archive_format: gzip
from_secret: docker_username filesystem_cache_root: "/var/lib/cache"
when: mount:
event: - "maven"
- push volumes:
- tag - name: cache
path: "/var/lib/cache"
- name: docker
image: plugins/docker
settings:
dockerfile: "Dockerfile.drone"
repo: harbor.oa00.com/sws/project0512
registry: harbor.oa00.com
username:
from_secret: docker_username
password:
from_secret: docker_password
tags:
- master
volumes: volumes:
- name: - name: cache
temp: {} host:
path: "/var/lib/cache"
trigger:
branch:
- master
event:
- push
- merge

Loading…
Cancel
Save