Skip to content

Commit

Permalink
ci: sign lacework-releng commits (#4)
Browse files Browse the repository at this point in the history
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
  • Loading branch information
afiune authored Jul 30, 2021
1 parent bf6cdf6 commit 7a5d2bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
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-<PROVIDER>-<NAME>
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

0 comments on commit 7a5d2bd

Please sign in to comment.