Skip to content

Commit

Permalink
Add token to github push for auth
Browse files Browse the repository at this point in the history
  • Loading branch information
dniel committed May 23, 2019
1 parent 79c9ee7 commit 233d623
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
15 changes: 9 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,17 @@ deploy:
on:
all_branches: true
if: $BRANCH != "master"

notifications:
slack:
rooms:
secure: izNrP9LY8rLdBiQtAZJUPMSnVGUNDiw3FQ2LKydk2ct0jDGVEw6ztoiA9bmF+IoLxTtKLo1nk/2LUCT9D5regNNQ7/MR3K5r2oOstXJKwNhQlOko/g+DYcc+cRwkcD+e1drEJxjw4FO71JaAAUAMjv2x7nAwlqnDQz1s6eh8ZhYvl554+kAF1ha0u++KabXn8cUSDlJs1qOhQAjrjuudAbXw2xgGIKr/Wx0EgtrohgqsRTWjuTHThYZE3+10aDaQ2/NbrSrdVMo5o3PJJW8bv4n2crCiqFD5r6c7Zhx5TSJXbcDjk3pttsz0n6mUrhQ0snVc167IwYW4AdxyEbF+NTKqh3RyeLbkLi+CaujE3/VbMW93QYoa+ckMhZZXDlghBuiW4hRI1c9CDqjcb9uWOffQuHdceDn4rLs4UUeGZ09bxL2vj5qC9mKsU30TZFEXKSyGbFzYC7VgM1eCklvUvxpUvxwPm5mbrqMuJdvueUrpp5CrY5mmEvOYJZxMVLhizATBIRUDQqHtJ9CVHGNntsHnBxG8K+aToQiGHwyclekLTOGJzeaMt9seplTCtdoeCidGnX8NsZnbboOIi4Rw4GWupA1WgLJJkB9s6IZbYs3i2RT1UCcJGMX5C+6SPvn+gDcJYxLM1iCYl52UH6nqSzULYYdsoADYxelOxuGpWr4=
on_success: always # change: send a notification when the build status changes.
on_failure: always # always: always send a notification.
on_success: always
on_failure: always
template:
- "Repo `%{repository_slug}` *%{result}* build (<%{build_url}|#%{build_number}>) for commit (<%{compare_url}|%{commit}>) on branch `%{branch}`."
- "Execution time: *%{duration}*"
- "Message: %{message}"
- Repo `%{repository_slug}` *%{result}* build (<%{build_url}|#%{build_number}>)
for commit (<%{compare_url}|%{commit}>) on branch `%{branch}`.
- 'Execution time: *%{duration}*'
- 'Message: %{message}'
env:
global:
secure: iHN7Ig4AZkNk/nNMSlpGoMFDCGNQJ74rbEzWT1p+AKQLQnxeadXDG6SMIaOcZtcM74C6lHg8R26j1dMVf1hHfazEThUhFpV6QIewGMHVzUHNov/pwpjEV9nObBD/0c6jgi0eKim5ImWZwiUpIrp9Gd7KhnQz9o75nT+cRAf/Gt/K6WJGZ3Uo5o3Ltld/3csfBv/eUtIO9VAgPwdkxSrgkZr2SwdplpspuApGlqNtHfHK3rCdhtGyS+HRfslgIG+DRYwheAEfXwXlcksAKDzL4A5aRNg5/hrMQ8hP94vJCMzu8f7ZpiJLnYtzbh8v4AG9d1GzFg1lCBG7z5hbhXfjevqQ1VkaMISlakUQCfa5vWNiG4ydEplipn4ca9DTbagmKqi6yaOZGw51ipA7BiNo7g2zJRYTPPlWjei0REj8ijqicmiQrrvnIcLRjqGh+WJZ5Yne5wOCs6gR//xW+a8WWz8tbTqd/UoGfYeHIEe33XPitKiAbvhxdQzKMNu61sGbllKUC7Of7GKP+Mx8W5s+4QQZHR8H0GJqwr0LGHx4t5qUATHhAGdJQZLivFOXOxbnSmqgG3dhRbnEMHYEWixHH+QU5dqn1BCNWS7Lv8m1/C+1ZA6HFmScNzQwcqu7EWBpxnOoMWx292Sbj8jG8S1QEuAOSVR8H8yrK5RgV5XRr1c=
4 changes: 3 additions & 1 deletion .travis/deploy_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ docker push dniel/forwardauth:$BRANCH
docker push dniel/forwardauth:latest

echo "Tag release on Git to know that this commit has been released."
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis CI"
git tag "v$APP_VERSION"
git push origin "v$APP_VERSION"
git push https://$GH_TOKEN@github.com/dniel/traefik-forward-auth0 "v$APP_VERSION"
echo "DONE"

0 comments on commit 233d623

Please sign in to comment.