/images/avatar.png

drone feishu notify plugin

使用前需飞书设置-特定群组自动推送消息 在群/话题中,新建 群机器人 点击,群管理 新建一个 自定义机器人 类机器人, 自定义机器人指南 机器人名称 改为 ns-drone:{url} ,

drone-runner 配置

attention 注意 steps ENV env DRONE_WORKSPACE pipeline/environment/reference/drone-workspace/ offical doc with empty on mode type: docker with path of runner temp folder on mode type: exec, and will remove after build .drone.yml 文件中 when refuse https://docs.drone.io/pipeline/docker/syntax/conditions/ glob style https://en.wikipedia.org/wiki/Glob_(programming) docker-runner docker-runner on linux env file 1 2 3 4 5 6 7 8 ENV_DRONE_RUNNER_NAME="" ENV_DRONE_RPC_PROTO="http" ENV_DRONE_RPC_HOST="" ENV_DRONE_RPC_SECRET="" ENV_DRONE_UI_DISABLE="false" ENV_DRONE_UI_USERNAME="" ENV_DRONE_UI_PASSWORD="" ENV_DRONE_RUNNER_CAPACITY="2" https://docs.drone.io/runner/docker/installation/linux/ 1 2 3 4 5 6

drone-server 配置使用

doc https://docs.drone.io/ enterprise https://docs.drone.io/enterprise/ official image drone with gitea https://hub.docker.com/r/drone/drone https://docs.drone.io/server/reference/ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 drone-server: # https://hub.docker.com/r/drone/drone container_name: "drone-server" image: 'drone/drone:2.14.0' # https://hub.docker.com/r/drone/drone/tags environment: # https://docs.drone.io/installation/providers/gitea/ # https://docs.gitea.io/en-us/oauth2-provider/ - TZ=Asia/Shanghai - DRONE_OPEN=true - DRONE_AGENTS_ENABLED=true # https://docs.drone.io/server/reference/drone-database-secret/ use DRONE_DATABASE_DATASOURCE or openssl rand -hex 16 for sqlite3 - DRONE_DATABASE_SECRET=${ENV_DRONE_POSTGRESQL_PASSWORD}

drone untrusted repositories cannot mount host volumes

error log 1 linter: untrusted repositories cannot mount host volumes 原因在定义 drone.yml 中添加了 volumes 尝试使用挂载时出现该问题 1 2 3 4 volumes: - name: go_cache host: path: /tmp/cache/go 那么原因就是 登录 drone 的用户不是 管理员 或者在 SETTINGS 的 Main 部分,

Makefile 使用详解

makefile介绍在 Unix 下的软件工程,会不会编写 makefile,从一个侧面说明了开发者是否具备完成大型工程的能力 因为,makefile关系