Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: sign lacework-releng commits #15

Merged
merged 1 commit into from
Jul 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ source scripts/release_helpers.sh
readonly org_name=lacework
readonly project_name=terraform-aws-ecs-agent
readonly git_user="Lacework Inc."
readonly git_email="ops+releng@lacework.net"
readonly git_email="tech-ally@lacework.net"
readonly required_files_for_release=(
RELEASE_NOTES.md
CHANGELOG.md
Expand Down
12 changes: 8 additions & 4 deletions scripts/release_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ bump_version() {
fi

log "commiting and pushing the version bump to github"
git config --global user.email $git_email
git config --global user.name $git_user
if [ "$CI" != "" ]; then
git config --global user.email $git_email
git config --global user.name $git_user
git config --global user.signingkey $GPG_SIGNING_KEY
fi
git_add_version_files
git commit -m "chore: version bump to v$VERSION"
git commit -sS -m "ci: version bump to v$VERSION"
git push origin $main_branch
}

Expand Down Expand Up @@ -146,9 +149,10 @@ push_release() {
if [ "$CI" != "" ]; then
git config --global user.email $git_email
git config --global user.name $git_user
git config --global user.signingkey $GPG_SIGNING_KEY
fi
git checkout -B release
git commit -am "release: v$_version_no_tag"
git commit -sS -am "release: v$_version_no_tag"
git push origin release -f
}

Expand Down