【问题标题】:continuous integration with drone and github: build is not triggering on commit与无人机和 github 的持续集成:构建不会在提交时触发
【发布时间】:2017-03-06 14:26:57
【问题描述】:

我正在使用open source edition 的无人机。

docker-compose.yml:

version: '2'

services:
  drone-server:
    image: drone/drone:0.5
    ports:
     - 80:8000
    volumes:
     - ./drone:/var/lib/drone/
    restart: always
    environment:
     - DRONE_OPEN=true
     - DRONE_ADMIN=khataev
     - DRONE_GITHUB_CLIENT=github-client-string
     - DRONE_GITHUB_SECRET=github-secret-string
     - DRONE_SECRET=drone-secret-string

  drone-agent:
    image: drone/drone:0.5
    command: agent
    restart: always
    depends_on: [ drone-server ]
    volumes:
     - /var/run/docker.sock:/var/run/docker.sock
    environment:
     - DRONE_SERVER=ws://drone-server:8000/ws/broker
     - DRONE_SECRET=drone-secret-string

应用程序在 Github 上注册和授权,并提供秘密/客户端字符串。

我将 .drone.yml 文件放入我的项目存储库中:

pipeline:
  build:
    image: rails-qna
    commands: 
      - bundle exec rake db:drop
      - bundle exec rake db:create
      - bundle exec rake db:migrate
      - bundle exec rspec

项目settings 和构建status 的屏幕截图 1)我错过了什么,为什么构建没有被提交到回购触发? 2)如何手动触发构建? 3) 项目设置中的Timeout是什么?

【问题讨论】:

    标签: continuous-integration drone.io


    【解决方案1】:

    发现一个问题 - 由于网络设置,github webhooks 无法访问我的无人机服务器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-04-14
      • 2014-04-10
      • 1970-01-01
      • 2016-10-05
      • 1970-01-01
      • 2010-09-29
      • 1970-01-01
      • 2021-11-25
      相关资源
      最近更新 更多