Skip to content
Snippets Groups Projects
Unverified Commit adf23abd authored by Nicolas Vigier's avatar Nicolas Vigier
Browse files

Bug 32751: Sign incrementals sha256sums too if var/sign_build is set

parent 5cafc16c
No related branches found
No related tags found
No related merge requests found
......@@ -155,11 +155,11 @@ Signing builds
--------------
If the environment variable RBM_SIGN_BUILD is set to 1, the
sha256sums-unsigned-build.txt file will be signed with gpg.
You can use the RBM_GPG_OPTS environment variable to add some options
to the gpg command used to sign the file. You can also set the
var/sign_build and var/sign_build_gpg_opts options in the rbm.local.conf
file.
sha256sums-unsigned-build.txt and sha256sums-unsigned-build.incrementals.txt
files will be signed with gpg. You can use the RBM_GPG_OPTS environment
variable to add some options to the gpg command used to sign the file.
You can also set the var/sign_build and var/sign_build_gpg_opts options
in the rbm.local.conf file.
Cleaning obsolete files and containers images
......
......@@ -6,3 +6,6 @@
cd [% shell_quote(path(dest_dir)) %]/[% c("var/signed_status") %]/[% c("version") %]-[% c("var/torbrowser_build") %]
[% END -%]
sha256sum `ls -1 | grep '\.incremental\.mar$' | sort` > sha256sums-[% c("var/signed_status") %]-build.incrementals.txt
[% IF c("var/sign_build") -%]
gpg -abs [% c("var/sign_build_gpg_opts") %] sha256sums-[% c("var/signed_status") %]-build.incrementals.txt
[% END -%]
......@@ -45,12 +45,13 @@ var:
local_conf: 1
### The var/sign_build option defines if you want to sign the
### sha256sums-unsigned-build.txt file with gpg.
### sha256sums-unsigned-build.txt and
### sha256sums-unsigned-build.incrementals.txt files with gpg.
#sign_build: 1
### The var/sign_build_gpg_opts option can be used to define some gpg
### options to select the key to use to sign the sha256sums-unsigned-build.txt
### file.
### and sha256sums-unsigned-build.incrementals.txt files.
#sign_build_gpg_opts: '--local-user XXXXXXXX'
### The clean configuration is used by the cleaning script to find the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment