Skip to content

Commit

Permalink
spelling mistakes in docs-push (#16)
Browse files Browse the repository at this point in the history
* spelling mistakes in docs-push

* one mroe issue

* updated token

* wrong token

* still wrong token
  • Loading branch information
EItanya authored Feb 21, 2019
1 parent 268df57 commit 2ce9e80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ci/push-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ for line in $CONFIG; do
done

github_token_no_spaces=$(echo $GITHUB_TOKEN | tr -d '[:space:]')
branch="docs-gloo-$tag"
branch="docs-sqoop-$tag"

set +x
echo "Cloning solo-docs repo"
Expand All @@ -29,13 +29,13 @@ git config --global user.name "soloio-bot"
if [ -d "solo-docs/sqoop/docs/v1/github.com/solo-io/sqoop" ]; then
rm -r solo-docs/sqoop/docs/v1/github.com/solo-io/sqoop
fi
cp -r docs/v1/github.com/solo-io/sqoop solo-docs/sqoop/docs/v1/github.com/solo-io/gloo
cp -r docs/v1/github.com/solo-io/sqoop solo-docs/sqoop/docs/v1/github.com/solo-io/sqoop

# Gloo
if [ -d "solo-docs/sqoop/docs/v1/github.com/solo-io/gloo" ]; then
rm -r solo-docs/sqoop/docs/v1/github.com/solo-io/gloo
fi
cp -r docs/v1/github.com/solo-io/gloo solo-docs/sqoop/docs/v1/github.com/solo-io/sqoop
cp -r docs/v1/github.com/solo-io/gloo solo-docs/sqoop/docs/v1/github.com/solo-io/gloo

# Solo Kit
if [ -d "solo-docs/sqoop/docs/v1/github.com/solo-io/solo-kit" ]; then
Expand Down Expand Up @@ -67,6 +67,6 @@ fi
(cd solo-docs && git push --set-upstream origin $branch)

curl -v -H "Authorization: token $github_token_no_spaces" -H "Content-Type:application/json" -X POST https://api.github.com/repos/solo-io/solo-docs/pulls -d \
'{"title":"Update docs for gloo '"$tag"'", "body": "Update docs for gloo '"$tag"'", "head": "'"$branch"'", "base": "master"}'
'{"title":"Update docs for sqoop '"$tag"'", "body": "Update docs for sqoop '"$tag"'", "head": "'"$branch"'", "base": "master"}'

rm -rf solo-docs
2 changes: 1 addition & 1 deletion cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ steps:
secrets:
- kmsKeyName: projects/solo-public/locations/global/keyRings/build/cryptoKeys/build-key
secretEnv:
GITHUB_TOKEN: CiQABlzmSRpjt9c2jcCGU2lIk68qAkHIzIHUeYS+artlcens/7oSUQCCPGSG407g5usGvAhM+oL98Xir0fHWUiNe3827h9zdhmkCbrZpNqfVFkMhAxQ/ZlhC31+KwzWoHnDSb3RN7CoKj+gves6q7MMf7wNxSmC46A==
GITHUB_TOKEN: CiQABlzmSTMDip7kcJ7Za6L2LZ9Opsrh9cFyU4NT8jIpxoOVAJISUQCCPGSGg/YLLQek+4pWIIS6iAML0UggGd71f3uT3Rl8OOfYIrZL0CTs93MdsWJERjjbLFOhM642UV4V+pczZerb/U/0sDmZj3XSBpPivrsSgw==
DOCKER_HUB_PASSWORD: CiQABlzmSW0u+qhXDvTCxLnbi09Zm88eCU0wSdvFn1W+6WOpTgQSTgCCPGSGTAlMndrEkYOynPhDzTXrW1q1eAsQYjKOWOwZKodcQZ2WIzdvpOOjv+WrGTssWWg1uPFV4CnajT7DzeNAb7USkla1epatm6OnuQ==
FIREBASE_TOKEN: CiQABlzmSc0BWpPfrGRtDscrxOfp9ZBkZO9fkO79tjEmA14c8ZESVwCCPGSG8uZtLSmFucmEEJGJ0080ON7Zw5TjLe2YdwuxnSOA5YzZryVwLFAMzRmfb6OBxyThTZKvGZzgfXyv6CeLwYX0exk20u7k2bnrWbFHO0Aa4TiQqw==

Expand Down

0 comments on commit 2ce9e80

Please sign in to comment.