Skip to content

Commit

Permalink
Tag with epoch and push using https
Browse files Browse the repository at this point in the history
Signed-off-by: Quique Llorente <[email protected]>
  • Loading branch information
qinqon committed Jul 24, 2020
1 parent 730023c commit de3123a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions automation/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit de3123a

Please sign in to comment.