Coder Social home page Coder Social logo

travis-ci-webhook's Introduction

Travis CI webhook

travis-ci-webhook listens to incomming HTTP POST-request from traivs-ci.org and triggers your specified scripts. It is a docker container wrap of travisci-webhook-handler.

Running

docker run -d \
  -p 7777:7777 \
  -v ${PWD}/scripts:/usr/src/app/scripts \
  -v /var/run/docker.sock:/var/run/docker.sock \
  --name travis-ci-webhook \
  vangie/travis-ci-webhook

travis-ci-webhook's People

Contributors

vangie avatar

Stargazers

 avatar

Watchers

 avatar

travis-ci-webhook's Issues

error while running

I get this error when trying to run the container:

yarn start v0.22.0
error Couldn't find a package.json file in "/"

How do I provide the travis public key?

I'm providing the following environmental variable:

  • TRAVIS_PUBKEY:-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvtjdLkS+FP+0fPC09j25 y/PiuYDDivIT86COVedvlElk99BBYTrqNaJybxjXbIZ1Q6xFNhOY+iTcBr4E1zJu tizF3Xi0V9tOuP/M8Wn4Y/1lCWbQKlWrNQuqNBmhovF4K3mDCYswVbpgTmp+JQYu Bm9QMdieZMNry5s6aiMA9aSjDlNyedvSENYo18F+NYg1J0C0JiPYTxheCb4optr1 5xNzFKhAkuGs4XTOA5C7Q06GCKtDNf44s/CVE30KODUxBi0MCKaxiXw/yy55zxX2 /YdGphIyQiA5iO1986ZmZCLLW8udz9uhW5jUr3Jlp9LbmphAC61bVSf4ou2YsJaN 0QIDAQAB -----END PUBLIC KEY-----

But I'm still getting the following error:

TypeError: must provide a 'public_key' option
at create (/usr/src/app/node_modules/travisci-webhook-handler/handler.js:22:15)
at Object. (/usr/src/app/index.js:19:17)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:427:7)
at startup (bootstrap_node.js:151:9)

Any help would be great :)

Ta

Ross

Cannot find module './scripts'

Hi

I'm getting the following error now :)

$ node index.js
module.js:472
throw err;
^

Error: Cannot find module './scripts'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/usr/src/app/index.js:20:15)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
error Command failed with exit code 1.

This is my docker compose file

 travis:
  image: "vangie/travis-ci-webhook"
  container_name: travis
  restart: always
  volumes:
   - "/travis/scripts:/usr/src/app/scripts"
   - "/travis/env.override:/usr/src/app/.env.override"
  ports:
   - "7777:7777"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.