Skip to content

Commit b5461e1

Browse files
LucaGuerrapoiana
authored andcommitted
new(ci): sign .tar.gz packages
Signed-off-by: Luca Guerra <[email protected]>
1 parent c8072d2 commit b5461e1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/publish-bin

+7-1
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,15 @@ fi
3939
s3_bucket_repo="s3://falco-distribution/packages/${repo}/${arch}"
4040
cloudfront_path="/packages/${repo}/${arch}"
4141

42+
# sign
43+
44+
gpg --detach-sign --digest-algo SHA256 --armor ${file}
45+
4246
# publish
4347
package=$(basename -- ${file})
4448
echo "Publishing ${package} to ${s3_bucket_repo}..."
4549
aws s3 cp ${file} ${s3_bucket_repo}/${package} --acl public-read
50+
aws s3 cp ${file}.asc ${s3_bucket_repo}/${package}.asc --acl public-read
4651

47-
aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${package}
52+
aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${package}
53+
aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${package}.asc

0 commit comments

Comments
 (0)