Skip to content

Commit

Permalink
ci: sign lacework-releng commits (#500)
Browse files Browse the repository at this point in the history
Signed-off-by: Salim Afiune Maya <[email protected]>
  • Loading branch information
afiune committed Jul 30, 2021
1 parent c3fb601 commit 523097c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ readonly package_name=lacework-cli
readonly binary_name=lacework
readonly docker_org=lacework
readonly git_user="Lacework Inc."
readonly git_email="ops+releng@lacework.net"
readonly git_email="tech-ally@lacework.net"
readonly docker_tags=(
latest
scratch
Expand Down Expand Up @@ -250,9 +250,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 Expand Up @@ -359,11 +360,14 @@ bump_version() {
fi

log "commiting and pushing the vertion 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
git add api/version.go # file genereted by scripts/version_updater.sh
git commit -m "version bump to v$VERSION"
git commit -sS -m "ci: version bump to v$VERSION"
git push origin main
}

Expand Down

0 comments on commit 523097c

Please sign in to comment.