- run the shell script
bash drone-gitlab.shto build a image with gitlab token refresh fix. - update the
drone.patchor thego-scm.patchif 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.