Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aem-design/docker-travis-build-trigger
Trigger travis build job for a repo.
https://github.com/aem-design/docker-travis-build-trigger
Last synced: 7 days ago
JSON representation
Trigger travis build job for a repo.
- Host: GitHub
- URL: https://github.com/aem-design/docker-travis-build-trigger
- Owner: aem-design
- License: apache-2.0
- Created: 2019-10-01T04:35:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T04:16:00.000Z (about 2 years ago)
- Last Synced: 2024-11-07T01:35:19.063Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
## Travis Build Trigger
[![build_status](https://travis-ci.org/aem-design/docker-travis-build-trigger.svg?branch=master)](https://travis-ci.org/aem-design/docker-travis-build-trigger)
[![github license](https://img.shields.io/github/license/aem-design/docker-travis-build-trigger)](https://github.com/aem-design/docker-travis-build-trigger)
[![github issues](https://img.shields.io/github/issues/aem-design/docker-travis-build-trigger)](https://github.com/aem-design/docker-travis-build-trigger)
[![github last commit](https://img.shields.io/github/last-commit/aem-design/docker-travis-build-trigger)](https://github.com/aem-design/docker-travis-build-trigger)
[![github repo size](https://img.shields.io/github/repo-size/aem-design/docker-travis-build-trigger)](https://github.com/aem-design/docker-travis-build-trigger)
[![docker stars](https://img.shields.io/docker/stars/aemdesign/travis-build-trigger)](https://hub.docker.com/r/aemdesign/travis-build-trigger)
[![docker pulls](https://img.shields.io/docker/pulls/aemdesign/travis-build-trigger)](https://hub.docker.com/r/aemdesign/travis-build-trigger)
[![github release](https://img.shields.io/github/release/aem-design/docker-travis-build-trigger)](https://github.com/aem-design/docker-travis-build-trigger)This is docker image based on [node:10](https://hub.docker.com/_/node)
### Script Parameters
Following parameters are available
| Name | Default Value | Notes |
| --- | --- | --- |
| github_user | | github user name where repo is located |
| github_repo | | repo name |
| travis_token | | travis access token |
| github_branch | master | github branch to trigger build on |
| travis_url | https://api.travis-ci.org/repo/ | travis url to use to trigger jobs |### Starting
To trigger a job directly
```bash
docker run --rm aemdesign/travis-build-trigger \
start-branch-build \
--github_user=aem-design --github_repo=aem --travis_token=
```To trigger in Travis pipeline add the following to your stages
```yaml
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
```