Skip to content

Commit

Permalink
Print file size and checksums before publishing (#1867) (#1875)
Browse files Browse the repository at this point in the history
As documented in installer/docs/RELEASE.md, our process is to include
filesize and checksum information when publishing a release on GitHub.

Output that information in a structured way during the build process
to ensure that accurate information can be easily posted.

Include this output for all published builds to allow integrity to be
verified in all cases.

(cherry picked from commit 4459076)
  • Loading branch information
zjs committed Jul 17, 2018
1 parent 11b5e97 commit 01961f2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
12 changes: 9 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ pipeline:
- 'echo "Passed build will have artifact at https://storage.googleapis.com/vic-product-ova-builds/$TMP"'
- 'echo "Renaming build artifact to $TMP..."'
- 'mv vic-*.ova ../../bundle/$TMP'
- 'ls -l ../../bundle'
- 'cd ../../bundle'
- 'ls -l'
- 'echo "--------------------------------------------------"; stat --printf="Filesize (%n) = %s\n" $TMP; sha256sum --tag $TMP; sha1sum --tag $TMP; md5sum --tag $TMP'
when:
repo: vmware/vic-product
event: [push, tag]
Expand All @@ -247,7 +249,9 @@ pipeline:
- 'echo "Passed build will have artifact at https://storage.googleapis.com/vic-product-ova-builds/$TMP"'
- 'echo "Renaming build artifact to $TMP..."'
- 'mv vic-*.ova ../../bundle/$TMP'
- 'ls -l ../../bundle'
- 'cd ../../bundle'
- 'ls -l'
- 'echo "--------------------------------------------------"; stat --printf="Filesize (%n) = %s\n" $TMP; sha256sum --tag $TMP; sha1sum --tag $TMP; md5sum --tag $TMP'
when:
repo: vmware/vic-product
event: [deployment]
Expand All @@ -265,7 +269,9 @@ pipeline:
- 'TMP=$(echo vic-*.ova)'
- 'echo "Passed build will have artifact at https://storage.googleapis.com/vic-product-ova-releases/$TMP"'
- 'mv vic-*.ova ../../bundle/'
- 'ls -l ../../bundle'
- 'cd ../../bundle'
- 'ls -l'
- 'echo "--------------------------------------------------"; stat --printf="Filesize (%n) = %s\n" $TMP; sha256sum --tag $TMP; sha1sum --tag $TMP; md5sum --tag $TMP'
when:
repo: vmware/vic-product
event: [deployment]
Expand Down
8 changes: 4 additions & 4 deletions installer/docs/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ Description template for release candidates and releases:

```````
### [Download OVA](https://storage.googleapis.com/vic-product-ova-releases/vic-v1.4.0-rc3-4824-d99cbdb4.ova)
Filesize:
SHA256:
SHA1:
MD5:
Filesize (vic-v1.4.0-rc3-4824-d99cbdb4.ova) = ...
SHA256 (vic-v1.4.0-rc3-4824-d99cbdb4.ova) = ...
SHA1 (vic-v1.4.0-rc3-4824-d99cbdb4.ova) = ...
MD5 (vic-v1.4.0-rc3-4824-d99cbdb4.ova) = ...
### OVA will contain:
```
Expand Down

0 comments on commit 01961f2

Please sign in to comment.