mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-25 14:22:15 +00:00
update(scripts): sync regenerated signatures in s3
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
parent
9f4573a26a
commit
61bc6c8d32
@ -164,8 +164,13 @@ if [ "${sign_all}" ]; then
|
|||||||
for file in ${tmp_repo_path}/${debSuite}/*; do
|
for file in ${tmp_repo_path}/${debSuite}/*; do
|
||||||
if [ -f "$file" ]; then # exclude directories, symlinks, etc...
|
if [ -f "$file" ]; then # exclude directories, symlinks, etc...
|
||||||
if [[ ! $file == *.asc ]]; then # exclude signature files
|
if [[ ! $file == *.asc ]]; then # exclude signature files
|
||||||
echo "Signing ${file}..."
|
package=$(basename -- ${file})
|
||||||
|
echo "Signing ${package}..."
|
||||||
sign_deb ${tmp_repo_path} ${debSuite} ${file}
|
sign_deb ${tmp_repo_path} ${debSuite} ${file}
|
||||||
|
|
||||||
|
echo "Synching ${package}.asc to ${s3_bucket_repo}..."
|
||||||
|
aws s3 sync ${tmp_repo_path}/${debSuite}/${package}.asc ${s3_bucket_repo}/${debSuite}/${package}.asc --delete ---acl public-read
|
||||||
|
aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${debSuite}/${package}.asc
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -95,8 +95,13 @@ if [ "${sign_all}" ]; then
|
|||||||
for file in ${tmp_repo_path}/*; do
|
for file in ${tmp_repo_path}/*; do
|
||||||
if [ -f "$file" ]; then # exclude directories, symlinks, etc...
|
if [ -f "$file" ]; then # exclude directories, symlinks, etc...
|
||||||
if [[ ! $file == *.asc ]]; then # exclude signature files
|
if [[ ! $file == *.asc ]]; then # exclude signature files
|
||||||
echo "Signing ${file}..."
|
package=$(basename -- ${file})
|
||||||
|
echo "Signing ${package}..."
|
||||||
sign_rpm ${tmp_repo_path} ${file}
|
sign_rpm ${tmp_repo_path} ${file}
|
||||||
|
|
||||||
|
echo "Synching ${package}.asc to ${s3_bucket_repo}..."
|
||||||
|
aws s3 sync ${tmp_repo_path}/${package}.asc ${s3_bucket_repo}/${package}.asc --delete ---acl public-read
|
||||||
|
aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${package}.asc
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user