Skip to content

Commit

Permalink
Adding release signing
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdett committed Jan 20, 2017
1 parent b8c1190 commit 3a9da36
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.gitignore
COPYING
README.md
signing.key
signing.key.enc
sign_release.sh
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/signing.key
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,18 @@ after_success:
- docker save nghttpx > nghttpx.docker
- ./docker2aci nghttpx.docker && mv nghttpx-latest.aci nghttpx.linux.amd64.aci
- xz nghttpx.docker
- sha512sum nghttpx.* > SHA512SUM
before_deploy:
- openssl aes-256-cbc -K $encrypted_58ad5fa23b5d_key -iv $encrypted_58ad5fa23b5d_iv -in signing.key.enc -out signing.key -d
- ./sign_release.sh nghttpx.linux.amd64.aci nghttpx.docker.xz
deploy:
provider: releases
api_key:
secure: f1rGWlDdEtX5dcfNt2wfpIcVSDL8ya5rAl85UkTL3XKzccq/0LJqJreHFylhEtuVrgSMP1GcKC8yN9zcCyUir/XjKqC738o5/2gHfKcumeAXLjIJkO0f/GzftAuutGAUYtO/FhWTnujyRDO3LY5fd2QjlVUf4VFR8kEIQCEQ8T8wBJYzMwf28OA2EzivYhCv/TWxzPH/XV6R9/6pA5SqSQnLhkreMBrVFiBE51FoC1ZHZps421zIIaPJD/0lHPr9REMl7Cl2D2mTQrSfr075kS+RsbxLYGKk+YMhkURP4sLItNmjt4/OzsEdqfnB9Es1RjZId9qzuR7tVZ6OrDLPYIq2aTKYYPhTxDBtjfmVaLcni+ILH4o91FkntAc5JWcKRx8z3VFLrE9cmMBEHhvwglontamuadMHmtcUcCci9NinSqzRFiljOF0ndefVgb/lCxgBn9HGjES/BPgRCoGfc3vfxOqequ5PKKWIrFukq2TmeqmAlz5m/lYOvNM3A9Yp3k8L4bSWLETLU0HKXDuI0y99iJyZGBqKdl6hdEn9x5CRLEJpMWwIc/r+k5MrZgUrOeIy5/dTZ7Sv9jQFnr2cFlB7XuTxr/e9kARZoOivPwY2J9nSpue7buFIuIMN0Bfe4audf8Nd5wBisjXioDcrxdvevF+GBF3SB7i/cO+GUMw=
file:
- nghttpx.linux.amd64.aci
- nghttpx.linux.amd64.aci.asc
- nghttpx.docker.xz
- SHA512SUM
- nghttpx.docker.xz.asc
skip_cleanup: true
on:
tags: true
Expand Down
13 changes: 13 additions & 0 deletions sign_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

GPG=gpg2

mkdir -p tmp
TMP_KEYRING=$(mktemp -p tmp)
GPG_FLAGS="--batch --no-default-keyring --keyring $TMP_KEYRING"
$GPG $GPG_FLAGS --import signing.key
for f in "$@"; do
rm -f "${f}.asc"
$GPG $GPG_FLAGS --armour --detach-sign "$f"
done
rm $TMP_KEYRING
Binary file added signing.key.enc
Binary file not shown.

0 comments on commit 3a9da36

Please sign in to comment.