Skip to content

Instantly share code, notes, and snippets.

@lwolf
Last active January 31, 2020 10:21
Show Gist options
  • Save lwolf/63cc36b69b030178f7bcbb70edd9f0fd to your computer and use it in GitHub Desktop.
Save lwolf/63cc36b69b030178f7bcbb70edd9f0fd to your computer and use it in GitHub Desktop.
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