Sign inSign up

aemdesign/travis-build-trigger

By aemdesign

•Updated over 5 years ago

trigger travis pipelines

Image
0

1.0K

aemdesign/travis-build-trigger repository overview

⁠Travis Build Trigger

build_status github license github issues github last commit github repo size docker stars docker pulls github release

This is docker image based on node:10⁠

⁠Script Parameters

Following parameters are available

NameDefault ValueNotes
github_usergithub user name where repo is located
github_reporepo name
travis_tokentravis access token
github_branchmastergithub branch to trigger build on
travis_urlhttps://api.travis-ci.org/repo/⁠travis url to use to trigger jobs
⁠Starting

To trigger a job directly

docker run --rm aemdesign/travis-build-trigger \
start-branch-build \
--github_user=aem-design --github_repo=aem --travis_token=<TOKEN>

To trigger in Travis pipeline add the following to your stages

before_install:
  # get current repo user name
  - declare -a REPO_SLUG_ARRAY="(${TRAVIS_REPO_SLUG/\// })"
deploy:
  # trigger rebuild in related repo
  - provider: script
    script: if [[ $TRAVIS_BRANCH == "master" ]]; then bash docker run --rm aemdesign/travis-build-trigger start-branch-build --github_user=${REPO_SLUG_ARRAY[0]} --github_repo=aem --github_branch=${TRAVIS_BRANCH} --travis_token=${TRAVIS_TOKEN}; fi

Tag summary

Content type

Image

Digest

Size

335.2 MB

Last updated

over 5 years ago

docker pull aemdesign/travis-build-trigger