Skip to content

Commit

Permalink
Merge pull request #109 from lacework/afiune/release
Browse files Browse the repository at this point in the history
ci: add docker images to release notes
  • Loading branch information
afiune authored May 22, 2020
2 parents 5cc757e + 4f8f945 commit 1e990d4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 19 additions & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=(
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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() {
Expand Down
2 changes: 2 additions & 0 deletions scripts/release_containers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e990d4

Please sign in to comment.