Last active
January 31, 2020 10:21
-
-
Save lwolf/63cc36b69b030178f7bcbb70edd9f0fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl exec -it agola-gateway-pod /bin/bash | |
# add gitea | |
root$ agola remotesource create \ | |
--name gitea \ | |
--type gitea \ | |
--api-url https://gitea.yourdomain.com \ | |
--auth-type oauth2 \ | |
--clientid $GITEA_APP_CLIENTID \ | |
--secret $GITEA_APP_CLIENTSECRET \ | |
--token $ADMIN_TOKEN \ | |
--skip-ssh-host-key-check | |
# add github | |
root$ agola remotesource create \ | |
--name github \ | |
--type github \ | |
--api-url https://api.github.com \ | |
--auth-type oauth2 \ | |
--clientid $GITHUB_APP_CLIENTID \ | |
--secret $GITHUB_APP_CLIENTSECRET \ | |
--token $ADMIN_TOKEN | |
# add gitlab | |
root$ agola remotesource create \ | |
--name gitlab \ | |
--type gitlab \ | |
--api-url https://gitlab.com \ | |
--auth-type oauth2 \ | |
--clientid $GITHUB_APP_CLIENTID \ | |
--secret $GITHUB_APP_CLIENTSECRET \ | |
--token $ADMIN_TOKEN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment