From 0922e8ea4cbd0997f06c24af283c22ebdc11cd3b Mon Sep 17 00:00:00 2001 From: jackspirou Date: Fri, 15 Jan 2016 11:29:12 -0600 Subject: [PATCH] updating documentation for checksum usage --- .drone.sec | 2 +- .drone.yml | 6 +++--- .gitignore | 1 - DOCS.md | 8 ++++++++ Makefile | 2 +- README.md | 16 ++++++++++++++++ 6 files changed, 29 insertions(+), 6 deletions(-) diff --git a/.drone.sec b/.drone.sec index 51b592e..e9b2e88 100644 --- a/.drone.sec +++ b/.drone.sec @@ -1 +1 @@ -eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.ENVLhyifwZ-n9nN_8SKGRRI-esqsXjSfnFmzEAazMFeBWhDln0IXi3EAPGpJUmT9kkqXIqtqUgQ9H_nh2y274RrBcUs2Ch9E4f1wDYHgbenG1b8AkJWED4g5bre-r0huxuq2LhW9UutiZU17Zz7An0U9IKhucGtPAgBd7NIZjR0b2ioUp_jMkrOBnXvKuxzeYjDC2p0m8yvIRKahtlRPhQRvh8raXV890PZuH4vGJOpDymAiX1jZJLMSjN1ODj5U100RLugfIQUKi8b4aCas0hHHSQJcxnZgWDkVZEFiJct-VcWPUahUW99ogyH7v5dwjxIe9GeGHfr0ZO0KL8MxYg.se4-CBJA0XtQYbPO.arFXgGSOO_-UKMx5UnqozPEOkZEuOJyTQkJX9gpoyMeeK22bDJfpi9fl99K9aKRfrOeo37JHpkIyDfqWLo0548G73KaH7WK4U8gTHN6RvwsAvtP6UY3eUgJeQaC1F6zSz0N2tyr0SiH6NxeLNsIzFrUtLXi1kN_ocSUwWgnLEQROw_h9MiH_YWlRt6cB4Gpljs1HF9-g.V6GluvSUzQGIiqJSHXVoLQ \ No newline at end of file +eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.R-s00gRELUNOzcRuOcoVhqltGWZKP3xQyM-WCqyszETHKr2OVBtN6dfYEEYv1jB5a_4SUs3WDJsjdXieeQsL5sWiDwSzS8cjCeLF3J0XjgmwaPL2EiJn78yHcSOfV-YhHL6fM2zdxKKKgATlKLPGyi6p-O2saL-knl3gnKnO13-ZDWoVIsYVyklFH8UscVEwI4kthGP6rFGLZon46HePvrUxdBcczBZmuqQLGxXmFBr93cX2eJ6QK8K4j6pZwtC5q8ZcrnXwwOoJW_UjZugKuzEHcS_DX_59vb5oJ1MdWhdb8Sm5MBs7nYjRpx900KZzqxG8jzQYuo5PsH4r819GeQ.1BShEZlbixdfZWJB.PuIVYaAJEsbvhqcqTQD7FLQvFDscDvQLorCq7-Gh0LoZBO-5N3XIJVtcEtetW2Dqs6srNhYwEDqryqVp7O3MHlesSuPNy8ulGjCziuqPa5qmCI2ds6gv19RAtXpzot-UobDERID0W9CfL4ZeaiW1AKQmxB52jgNnmTZ3Gqbad4ZPIKBu5BvkIPtAOmbWu7I2SKFvyp8PzD9BMfH_k-Y3_y1f0hrvFYIcl3iuL7z0LW0OAot3aLfeGSuct65Zp5qZuXdUCTCDqYInNPjIcMczZkh3GOKtSm2grRKeEE3ub1_Kmyiw_F8CWGdlYXtOXM47Y9wxmQsKuQFT1WffUW3qdJCXTMvg3ILXJ5AzeuLcX1UkD4cPYg0AfqEEaLAee_0Btfoxpg.Ai8KGIEtc3W1h_vTAZahgg diff --git a/.drone.yml b/.drone.yml index 280edd8..18d1f2a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,10 +7,10 @@ build: publish: docker: - username: jackspirou + username: drone password: $$DOCKER_PASS email: $$DOCKER_EMAIL - repo: jackspirou/drone-github-release + repo: plugins/drone-github-release when: branch: master @@ -18,7 +18,7 @@ plugin: name: GitHub Release desc: Publishs files and artifacts to GitHub Releases type: publish - image: jackspirou/drone-github-release + image: plugins/drone-github-release labels: - github - release diff --git a/.gitignore b/.gitignore index 57507b7..5dc0f42 100644 --- a/.gitignore +++ b/.gitignore @@ -24,4 +24,3 @@ _testmain.go *.prof drone-github-release -secrets.yml diff --git a/DOCS.md b/DOCS.md index 7ecd3f7..84537c5 100644 --- a/DOCS.md +++ b/DOCS.md @@ -3,6 +3,7 @@ can override the default configuration with the following parameters: * `api_key` - GitHub oauth token with public_repo or repo permission * `files` - Files to upload to GitHub Release, globs are allowed +* `checksums` - Checksum hashes to include in your GitHub release for all files specified. Supported hash methods include md5, sha1, sha256, sha512, adler32, and crc32. * `base_url` - GitHub base URL, only required for GHE * `upload_url` - GitHub upload URL, only required for GHE @@ -14,4 +15,11 @@ publish: api_key: my_github_api_key files: - dist/* + checksums: + - md5 + - sha1 + - sha256 + - sha512 + - adler32 + - crc32 ``` diff --git a/Makefile b/Makefile index 23e6cd2..91311a8 100644 --- a/Makefile +++ b/Makefile @@ -22,4 +22,4 @@ build: go build -ldflags '-s -w $(LDFLAGS)' docker: - docker build --rm=true -t jackspirou/drone-github-release . + docker build --rm=true -t drone/drone-github-release . diff --git a/README.md b/README.md index 6f9858f..7c7a579 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,14 @@ Drone plugin for publishing GitHub releases "files": [ "dist/*.txt", "dist/other-file" + ], + "checksums": [ + "md5", + "sha1", + "sha256", + "sha512", + "adler32", + "crc32" ] } } @@ -71,6 +79,14 @@ docker run -i plugins/drone-github-release <