123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #!/bin/sh
- #### Configs - edit them to suit your needs!
- # Gitea/Codeberg url. e.g. 'https://codeberg.org', 'https://gitea.example.org'
- export DRONE_GITEA_SERVER=''
- # Get it from Gitea/Codeberg
- export DRONE_GITEA_CLIENT_ID=''
- # Get it from Gitea/Codeberg
- export DRONE_GITEA_CLIENT_SECRET=''
- # Shared secret you created with openssl
- # Run 'openssl rand -hex 16' to get one
- export DRONE_RPC_SECRET=''
- # The url you got from pgrok, without "https://", set to 'AUTO' to get automatically (requires pgrok, localtunnel or tunnelto)
- export DRONE_SERVER_HOST='AUTO'
- # The protocol should be used to access $DRONE_SERVER_HOST. Set to 'http' or 'https'.
- export DRONE_SERVER_PROTO='https'
- # Your Gitea/Codeberg username
- export GITEA_USERNAME=''
- #### Tunneling service config
- ## Localhost tunneling service to use
- # Available values:
- # - pgrok
- # - localtunnel
- # - tunnelto
- export TUNNELING_SERVICE='pgrok'
- ## Preferred subdomain (some services may not respect this)
- # Default value: "`uname -n`-drone"
- export TUNNELING_SERVICE_SUBDOMAIN="`uname -n`drone"
- ## tunnelto.dev config
- # tunnelto.dev API key. Required only if you use tunnelto for tunneling. Otherwise leave as it is.
- export TUNNELTO_API_KEY=''
- #### Runner related configs
- # Change them if you use other domain/subdomain for runner. Otherwise leave them as is.
- export DRONE_RPC_PROTO="${DRONE_SERVER_PROTO}"
- export DRONE_RPC_HOST="${DRONE_SERVER_HOST}"
- #### Docker image names
- export DOCKER_MAIN_NAME="local-drone-gitea-main"
- export DOCKER_RUNNER_NAME="local-drone-gitea-runner"
|