parent
609d735671
commit
56a5d640b0
@ -0,0 +1,2 @@ |
|||||||
|
* |
||||||
|
!release/ |
@ -1 +0,0 @@ |
|||||||
eyJhbGciOiJIUzI1NiJ9.d29ya3NwYWNlOgogIGJhc2U6IC9nbwoKcGlwZWxpbmU6CiAgdGVzdDoKICAgIGltYWdlOiBnb2xhbmc6MS42CiAgICBlbnZpcm9ubWVudDoKICAgICAgLSBDR09fRU5BQkxFRD0wCiAgICBjb21tYW5kczoKICAgICAgLSBnbyB2ZXQKICAgICAgLSBnbyB0ZXN0IC1jb3ZlciAtY292ZXJwcm9maWxlPWNvdmVyYWdlLm91dAogICAgICAtIGdvIGJ1aWxkIC1sZGZsYWdzICItcyAtdyAtWCBtYWluLmJ1aWxkPSREUk9ORV9CVUlMRF9OVU1CRVIiIC1hIC10YWdzIG5ldGdvCgogIGxhdGVzdDoKICAgIGltYWdlOiBkb2NrZXIKICAgIHJlcG86IHBsdWdpbnMvZ2l0aHViLXJlbGVhc2UKICAgIHRhZ3M6IFsgImxhdGVzdCIsICIxLjAiLCAiMSIgXQogICAgd2hlbjoKICAgICAgYnJhbmNoOiBtYXN0ZXIKICAgICAgZXZlbnQ6IHB1c2gKCnBsdWdpbjoKICBuYW1lOiBHaXRIdWIgUmVsZWFzZQogIGRlc2M6IFB1Ymxpc2ggZmlsZXMgYW5kIGFydGlmYWN0cyB0byBHaXRIdWIgUmVsZWFzZXMKICB0eXBlOiBwdWJsaXNoCiAgaW1hZ2U6IHBsdWdpbnMvZ2l0aHViLXJlbGVhc2UKICBsYWJlbHM6CiAgICAtIGdpdGh1YgogICAgLSByZWxlYXNlCg.5FZW1Auk18CljY9LW5P82r9RM_spPCYMYg82PFj2irM |
|
@ -1,72 +0,0 @@ |
|||||||
Use this plugin for publishing files and artifacts to GitHub releases. Be aware |
|
||||||
that you can use this plugin only for tags, GitHub doesn't support the release |
|
||||||
of branches. |
|
||||||
|
|
||||||
## Config |
|
||||||
|
|
||||||
The following parameters are used to configure the plugin: |
|
||||||
|
|
||||||
* **api_key** - GitHub oauth token with public_repo or repo permission |
|
||||||
* **files** - files to upload to GitHub Release, globs are allowed |
|
||||||
* **file_exists** - what to do if an file asset already exists, supported values: **overwrite** (default), **skip** and **fail** |
|
||||||
* **checksum** - checksum takes hash methods to include in your GitHub release for the files specified. Supported hash methods include md5, sha1, sha256, sha512, adler32, and crc32. |
|
||||||
* **draft** - create a draft release if set to true |
|
||||||
* **prerelease** - set the release as prerelease if set to true |
|
||||||
* **base_url** - GitHub base URL, only required for GHE |
|
||||||
* **upload_url** - GitHub upload URL, only required for GHE |
|
||||||
|
|
||||||
The following secret values can be set to configure the plugin. |
|
||||||
|
|
||||||
* **GITHUB_RELEASE_API_KEY** - corresponds to **api_key** |
|
||||||
* **GITHUB_RELEASE_BASE_URL** - corresponds to **base_url** |
|
||||||
* **GITHUB_RELEASE_UPLOAD_URL** - corresponds to **upload_url** |
|
||||||
|
|
||||||
It is highly recommended to put the **GITHUB_RELEASE_API_KEY** into a secret so |
|
||||||
it is not exposed to users. This can be done using the drone-cli. |
|
||||||
|
|
||||||
```bash |
|
||||||
drone secret add --image=plugins/github-release \ |
|
||||||
octocat/hello-world GITHUB_RELEASE_API_KEY my_github_api_key |
|
||||||
``` |
|
||||||
|
|
||||||
Then sign the YAML file after all secrets are added. |
|
||||||
|
|
||||||
```bash |
|
||||||
drone sign octocat/hello-world |
|
||||||
``` |
|
||||||
|
|
||||||
See [secrets](http://readme.drone.io/0.5/usage/secrets/) for additional |
|
||||||
information on secrets |
|
||||||
|
|
||||||
## Examples |
|
||||||
|
|
||||||
The following is a sample configuration in your .drone.yml file: |
|
||||||
|
|
||||||
```yaml |
|
||||||
pipeline: |
|
||||||
github_release: |
|
||||||
image: plugins/github-release |
|
||||||
files: dist/* |
|
||||||
when: |
|
||||||
event: tag |
|
||||||
``` |
|
||||||
|
|
||||||
An example for generating checksums and upload additional files: |
|
||||||
|
|
||||||
```yaml |
|
||||||
pipeline: |
|
||||||
github_release: |
|
||||||
image: plugins/github-release |
|
||||||
files: |
|
||||||
- dist/* |
|
||||||
- bin/binary.exe |
|
||||||
checksum: |
|
||||||
- md5 |
|
||||||
- sha1 |
|
||||||
- sha256 |
|
||||||
- sha512 |
|
||||||
- adler32 |
|
||||||
- crc32 |
|
||||||
when: |
|
||||||
event: tag |
|
||||||
``` |
|
@ -1,9 +1,11 @@ |
|||||||
FROM alpine:3.4 |
FROM plugins/base:multiarch |
||||||
|
MAINTAINER Drone.IO Community <drone-dev@googlegroups.com> |
||||||
|
|
||||||
RUN apk update && \ |
LABEL org.label-schema.version=latest |
||||||
apk add \ |
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-github-release.git" |
||||||
ca-certificates && \ |
LABEL org.label-schema.name="Drone GitHub Release" |
||||||
rm -rf /var/cache/apk/* |
LABEL org.label-schema.vendor="Drone.IO Community" |
||||||
|
LABEL org.label-schema.schema-version="1.0" |
||||||
|
|
||||||
ADD drone-github-release /bin/ |
ADD release/linux/amd64/drone-github-release /bin/ |
||||||
ENTRYPOINT ["/bin/drone-github-release"] |
ENTRYPOINT [ "/bin/drone-github-release" ] |
||||||
|
@ -0,0 +1,11 @@ |
|||||||
|
FROM plugins/base:multiarch |
||||||
|
MAINTAINER Drone.IO Community <drone-dev@googlegroups.com> |
||||||
|
|
||||||
|
LABEL org.label-schema.version=latest |
||||||
|
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-github-release.git" |
||||||
|
LABEL org.label-schema.name="Drone GitHub Release" |
||||||
|
LABEL org.label-schema.vendor="Drone.IO Community" |
||||||
|
LABEL org.label-schema.schema-version="1.0" |
||||||
|
|
||||||
|
ADD release/linux/arm/drone-github-release /bin/ |
||||||
|
ENTRYPOINT [ "/bin/drone-github-release" ] |
@ -0,0 +1,11 @@ |
|||||||
|
FROM plugins/base:multiarch |
||||||
|
MAINTAINER Drone.IO Community <drone-dev@googlegroups.com> |
||||||
|
|
||||||
|
LABEL org.label-schema.version=latest |
||||||
|
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-github-release.git" |
||||||
|
LABEL org.label-schema.name="Drone GitHub Release" |
||||||
|
LABEL org.label-schema.vendor="Drone.IO Community" |
||||||
|
LABEL org.label-schema.schema-version="1.0" |
||||||
|
|
||||||
|
ADD release/linux/arm64/drone-github-release /bin/ |
||||||
|
ENTRYPOINT [ "/bin/drone-github-release" ] |
@ -1,9 +0,0 @@ |
|||||||
FROM armhfbuild/alpine:3.4 |
|
||||||
|
|
||||||
RUN apk update && \ |
|
||||||
apk add \ |
|
||||||
ca-certificates && \ |
|
||||||
rm -rf /var/cache/apk/* |
|
||||||
|
|
||||||
ADD drone-github-release /bin/ |
|
||||||
ENTRYPOINT ["/bin/drone-github-release"] |
|
@ -0,0 +1,11 @@ |
|||||||
|
FROM microsoft/nanoserver:latest |
||||||
|
MAINTAINER Drone.IO Community <drone-dev@googlegroups.com> |
||||||
|
|
||||||
|
LABEL org.label-schema.version=latest |
||||||
|
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-github-release.git" |
||||||
|
LABEL org.label-schema.name="Drone GitHub Release" |
||||||
|
LABEL org.label-schema.vendor="Drone.IO Community" |
||||||
|
LABEL org.label-schema.schema-version="1.0" |
||||||
|
|
||||||
|
ADD release/windows/amd64/drone-github-release /bin/ |
||||||
|
ENTRYPOINT [ "/bin/drone-github-release" ] |
@ -1,46 +0,0 @@ |
|||||||
[people] |
|
||||||
[people.bradrydzewski] |
|
||||||
name = "Brad Rydzewski" |
|
||||||
email = "brad@drone.io" |
|
||||||
login = "bradrydzewski" |
|
||||||
[people.Bugagazavr] |
|
||||||
name = "Kirill" |
|
||||||
email = "" |
|
||||||
login = "Bugagazavr" |
|
||||||
[people.donny-dont] |
|
||||||
name = "Don Olmstead" |
|
||||||
email = "donny-dont@gmail.com" |
|
||||||
login = "donny-dont" |
|
||||||
[people.jackspirou] |
|
||||||
name = "Jack Spirou" |
|
||||||
email = "" |
|
||||||
login = "jackspirou" |
|
||||||
[people.msteinert] |
|
||||||
name = "Mike Steinert" |
|
||||||
email = "" |
|
||||||
login = "msteinert" |
|
||||||
[people.nlf] |
|
||||||
name = "Nathan LaFreniere" |
|
||||||
email = "" |
|
||||||
login = "nlf" |
|
||||||
[people.tboerger] |
|
||||||
name = "Thomas Boerger" |
|
||||||
email = "thomas@webhippie.de" |
|
||||||
login = "tboerger" |
|
||||||
[people.athieriot] |
|
||||||
name = "Aurélien Thieriot" |
|
||||||
email = "a.thieriot@gmail.com" |
|
||||||
login = "athieriot" |
|
||||||
|
|
||||||
[org] |
|
||||||
[org.core] |
|
||||||
people = [ |
|
||||||
"bradrydzewski", |
|
||||||
"Bugagazavr", |
|
||||||
"donny-dont", |
|
||||||
"jackspirou", |
|
||||||
"msteinert", |
|
||||||
"nlf", |
|
||||||
"tboerger", |
|
||||||
"athieriot" |
|
||||||
] |
|
Loading…
Reference in new issue