Skip to content

Commit

Permalink
Merge pull request #7201 from habitat-sh/cm/force-gpg-to-do-the-thing
Browse files Browse the repository at this point in the history
[CI] Sign files using `gpg --yes`
  • Loading branch information
christophermaier authored Nov 14, 2019
2 parents b2ef1f8 + 8834eb8 commit dedf94e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .expeditor/scripts/shared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,15 @@ import_gpg_keys() {
# `*.asc` signature in the same directory as `file`.
gpg_sign() {
local file="${1}"

# Adding the `--yes` option here because we've seen cases where an
# *.asc file is already present somehow, even though that _should_
# be impossible.
gpg --armor \
--digest-algo sha256 \
--default-key "${chef_gpg_key}" \
--output "${file}.asc" \
--yes \
--detach-sign \
"${file}"
}
Expand Down

0 comments on commit dedf94e

Please sign in to comment.