Skip to content

Commit

Permalink
Updated to use hashicorps cookie from other provides; removes need fo…
Browse files Browse the repository at this point in the history
…r encrypted local copy
  • Loading branch information
gavinbunney committed Nov 21, 2019
1 parent 085799c commit 19a74f0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ website/vendor
!command/test-fixtures/**/*.tfstate
!command/test-fixtures/**/.terraform/

scripts/gogetcookie.sh
docker-compose
docker-compose-test-plugin.jar
node_modules/
Expand Down
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ dist: xenial
env:
- GOPROXY=https://gocenter.io

before_install:
- openssl aes-256-cbc -K $encrypted_e04f3cf0cf2c_key -iv $encrypted_e04f3cf0cf2c_iv -in scripts/gogetcookie.sh.enc -out scripts/gogetcookie.sh -d

install:
- bash scripts/gogetcookie.sh

Expand Down
8 changes: 8 additions & 0 deletions scripts/gogetcookie.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
touch ~/.gitcookies
chmod 0600 ~/.gitcookies

git config --global http.cookiefile ~/.gitcookies

tr , \\t <<\__END__ >>~/.gitcookies
go.googlesource.com,FALSE,/,TRUE,2147483647,o,git-admin.hashicorptest.com=1/5dMSZVNdQscVq3on5V38iBrG9sP2TYRlbj3TDMJHKEvoBxl_QW-zl-L7a8lk-FU-
__END__
Binary file removed scripts/gogetcookie.sh.enc
Binary file not shown.

0 comments on commit 19a74f0

Please sign in to comment.