fix(scripts): invalidate all signatures at once

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce 2023-01-19 16:51:04 +00:00 committed by poiana
parent 4bc7d3fa65
commit 099f118e34
2 changed files with 2 additions and 2 deletions

View File

@ -181,10 +181,10 @@ if [ "${sign_all}" ]; then
echo "Syncing ${package}.asc to ${s3_bucket_repo}..." echo "Syncing ${package}.asc to ${s3_bucket_repo}..."
aws s3 cp ${tmp_repo_path}/${debSuite}/${package}.asc ${s3_bucket_repo}/${debSuite}/${package}.asc --acl public-read aws s3 cp ${tmp_repo_path}/${debSuite}/${package}.asc ${s3_bucket_repo}/${debSuite}/${package}.asc --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
aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${debSuite}/*.asc
sign_repo ${tmp_repo_path} ${debSuite} sign_repo ${tmp_repo_path} ${debSuite}
fi fi

View File

@ -108,10 +108,10 @@ if [ "${sign_all}" ]; then
echo "Syncing ${package}.asc to ${s3_bucket_repo}..." echo "Syncing ${package}.asc to ${s3_bucket_repo}..."
aws s3 cp ${tmp_repo_path}/${package}.asc ${s3_bucket_repo}/${package}.asc --acl public-read aws s3 cp ${tmp_repo_path}/${package}.asc ${s3_bucket_repo}/${package}.asc --acl public-read
aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${package}.asc
fi fi
fi fi
done done
aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/*.asc
sign_repo ${tmp_repo_path} sign_repo ${tmp_repo_path}
fi fi