-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Quique Llorente <[email protected]>
- Loading branch information
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,14 +72,17 @@ export GOFLAGS="" | |
go get github.com/github-release/[email protected] | ||
|
||
# Create the release | ||
tag="v0.0.1" | ||
tag=$(date +%s) | ||
org=kubevirt | ||
|
||
git tag $tag | ||
|
||
git remote -v | ||
# To pass user/password from automations, idea is taken from [1] | ||
# [1] https://stackoverflow.com/questions/8536732/can-i-hold-git-credentials-in-environment-variables | ||
git config credential.helper '!f() { sleep 1; echo "username=${GITHUB_USER}"; echo "password=${GITHUB_TOKEN}"; }; f' | ||
|
||
git push [email protected]:$org/kubevirtci.git $tag | ||
|
||
git push https://github.com/$org/kubevirtci.git $tag | ||
github-release release \ | ||
-u $org \ | ||
-r kubevirtci \ | ||
|