Skip to content

Commit

Permalink
push tag if present
Browse files Browse the repository at this point in the history
  • Loading branch information
samir-gandhi committed Jun 19, 2019
1 parent 9cf0b26 commit 5dc7b9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ci_scripts/push_to_github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ git config user.name "devops_program"

git remote add gh_location https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/pingidentity/pingidentity-docker-builds.git

if test -z "$CI_COMMIT_TAG"; then
if test -n "$CI_COMMIT_TAG"; then
git push gh_location "$CI_COMMIT_TAG"
else
git push gh_location master
fi
fi

git push gh_location master

0 comments on commit 5dc7b9c

Please sign in to comment.