drone 1.x syntax
fix github-release plugin syntax
drone does not support tag events with branch conditions anymore
include alpha in binary_prerelease job
update drone syntax for 1.x
---
-pipeline:
- build:
- privileged: true
+kind: pipeline
+name: default
+
+platform:
+ os: linux
+ arch: amd64
+
+steps:
+- name: ci
+ pull: default
image: rancher/dapper:1.11.2
- volumes:
- - /var/run/docker.sock:/var/run/docker.sock
commands:
- dapper ci
-
- build-all-binaries:
privileged: true
- image: rancher/dapper:1.11.2
volumes:
- - /var/run/docker.sock:/var/run/docker.sock
- environment:
- - CROSS=1
+ - name: socket
+ path: /var/run/docker.sock
+
+- name: build-all-binaries
+ pull: default
+ image: rancher/dapper:1.11.2
commands:
- dapper build
+ environment:
+ CROSS: 1
+ privileged: true
+ volumes:
+ - name: socket
+ path: /var/run/docker.sock
when:
- branch: [ master, release/* ]
- event: tag
+ event:
+ - tag
+ ref:
+ include:
+ - "refs/heads/master"
+ - "refs/heads/release/*"
- stage-binaries:
+- name: stage-binaries
+ pull: default
image: rancher/dapper:1.11.2
commands:
- - cp -r ./bin/* ./package/
+ - "cp -r ./bin/* ./package/"
when:
- branch: [ master, release/* ]
- event: tag
+ event:
+ - tag
+ ref:
+ include:
+ - "refs/heads/master"
+ - "refs/heads/release/*"
- github_binary_prerelease:
+- name: github_binary_prerelease
+ pull: default
image: plugins/github-release
- prerelease: true
- files:
- - build/bin/rke_*
- - dist/artifacts/${DRONE_TAG}/*
+ settings:
+ api_key:
+ from_secret: github_token
checksum:
- sha256
- secrets: [github_token]
+ files:
+ - "build/bin/rke_*"
+ - "dist/artifacts/${DRONE_TAG}/*"
+ prerelease: true
when:
- branch: [ master, release/* ]
- event: tag
+ event:
+ - tag
ref:
- include: [ refs/tags/*rc* ]
+ - "refs/tags/*rc*"
+ - "refs/tags/*alpha*"
- github_binary_release:
+- name: github_binary_release
+ pull: default
image: plugins/github-release
- files:
- - build/bin/rke_*
- - dist/artifacts/${DRONE_TAG}/*
+ settings:
checksum:
- sha256
- secrets: [github_token]
+ files:
+ - "build/bin/rke_*"
+ - "dist/artifacts/${DRONE_TAG}/*"
+ api_key:
+ from_secret: github_token
when:
- branch: [ master, release/* ]
- event: tag
+ event:
+ - tag
ref:
- exclude: [ refs/tags/*rc* ]
+ exclude:
+ - "refs/tags/*rc*"
+ - "refs/tags/*alpha*"
+
+volumes:
+- name: socket
+ host:
+ path: /var/run/docker.sock
