diff --git a/scripts/release.sh b/scripts/release.sh index 36aa80cc5..77398b9eb 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -13,6 +13,17 @@ set -eou pipefail readonly project_name=go-sdk readonly package_name=lacework-cli readonly binary_name=lacework +readonly docker_org=techallylw +readonly docker_tags=( + latest + scratch + ubi-8 + centos-8 + debian-10 + ubuntu-1804 + amazonlinux-2 +# windows-nanoserver +) VERSION=$(cat VERSION) TARGETS=( @@ -69,7 +80,7 @@ prepare_release() { do_release() { log "releasing v$VERSION" prerequisites - release_checks + release_check clean_cache build_cli_cross_platform compress_targets @@ -117,6 +128,13 @@ generate_release_notes() { echo "Another day, another release. These are the release notes for the version \`v$VERSION\`." >> RELEASE_NOTES.md echo "" >> RELEASE_NOTES.md echo "$(cat CHANGES.md)" >> RELEASE_NOTES.md + + # Add Docker Images Footer + echo "" >> RELEASE_NOTES.md + echo "## Docker Images" > RELEASE_NOTES.md + for tag in "${docker_tags[@]}"; do + echo "* \`docker pull ${docker_org}/${package_name}:${tag}\`" >> RELEASE_NOTES.md + done } push_release() { diff --git a/scripts/release_containers.sh b/scripts/release_containers.sh index 974caa282..a24e70647 100755 --- a/scripts/release_containers.sh +++ b/scripts/release_containers.sh @@ -20,6 +20,8 @@ log "releasing container from SCRATCH" docker build -t "${repository}:scratch" --no-cache . docker push "${repository}:scratch" +# when updating the distributions below, please make sure to update +# the script 'release.sh' inside the 'script/' folder distros=( ubi-8 centos-8