- run the shell script
bash drone-gitlab.sh
to build a image with gitlab token refresh fix. - update the
drone.patch
or thego-scm.patch
if you have additional changes. - A prebuilt image is already at gluxhappy/drone-server-gitlab
Please use DRONE_GIT_USERNAME and DRONE_GIT_PASSWORD to avoid a token refresh issue casued by Force Token Refresh.
The DRONE_GIT_USERNAME
should be a user's name and DRONE_GIT_PASSWORD
should be an Personal Access Token with long expiration time. The access token should has been grant at least read access to all repositories you want to build via the Drone.