Skip to content

Commit

Permalink
Fix drone ci
Browse files Browse the repository at this point in the history
  • Loading branch information
niusmallnan authored and NewGr8Player committed May 20, 2020
1 parent 2dfc8d9 commit c605373
Showing 1 changed file with 46 additions and 31 deletions.
77 changes: 46 additions & 31 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,51 @@
---
pipeline:
build:
privileged: true
image: rancher/dapper:1.11.2
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- dapper ci
kind: pipeline

github-binary-publish-release:
image: plugins/github-release
files:
- bin/kontainer-engine-driver-aliyun-*
checksum:
- sha256
secrets: [github_token]
when:
branch: master
event: tag
ref:
exclude: [ refs/tags/*rc* ]
steps:
- name: build
privileged: true
image: rancher/dapper:1.11.2
volumes:
- name: docker
path: /var/run/docker.sock
commands:
- dapper ci

github-binary-publish-prerelease:
image: plugins/github-release
prerelease: true
- name: github-binary-publish-release
image: plugins/github-release
settings:
api_key:
from_secret: github_token
checksum:
- sha256
files:
- bin/kontainer-engine-driver-aliyun-*
- "bin/kontainer-engine-driver-aliyun-*"
when:
branch: master
event: tag
ref:
exclude: [ refs/tags/*rc* ]

- name: github-binary-publish-prerelease
image: plugins/github-release
settings:
api_key:
from_secret: github_token
checksum:
- sha256
secrets: [github_token]
when:
branch: master
event: tag
ref:
include: [ refs/tags/*rc* ]
- sha256
files:
- "bin/kontainer-engine-driver-aliyun-*"
prerelease: true
when:
branch: master
event: tag
ref:
include: [ refs/tags/*rc* ]

volumes:
- name: docker
host:
path: /var/run/docker.sock

node:
instance: agent-amd64

0 comments on commit c605373

Please sign in to comment.