All Projects → stealthybox → container-builder-github-ci-status

stealthybox / container-builder-github-ci-status

Licence: MIT license
Google Cloud Function responds to PubSub events on the cloud-builds topic to update GitHub CI status.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to container-builder-github-ci-status

labhub
GitHub bot for using GitLab CI in OSS projects
Stars: ✭ 31 (+34.78%)
Mutual labels:  github-bot
size-plugin-bot
A Github bot for size-plugin
Stars: ✭ 76 (+230.43%)
Mutual labels:  github-bot
thearesia
Github bot built with Rust
Stars: ✭ 17 (-26.09%)
Mutual labels:  github-bot
issuelabeler
A GitHub bot to label issues automatically based on title and body against list of defined labels. System status (https://status.verticalaxisbd.com/)
Stars: ✭ 23 (+0%)
Mutual labels:  github-bot
github-bot
This is a github bot that helps with managing issues, used on
Stars: ✭ 29 (+26.09%)
Mutual labels:  github-bot
triage-new-issues
A GitHub App, built with Probot that adds `triage` label to newly-created issues which don't have labels
Stars: ✭ 23 (+0%)
Mutual labels:  github-bot
tailor
GitHub bot that validates patches before they can be merged
Stars: ✭ 18 (-21.74%)
Mutual labels:  github-bot
check-in
Checks your test results metadata into github, commit-bound. Acts as a bot. You'll need a GitHub App to use it.
Stars: ✭ 18 (-21.74%)
Mutual labels:  github-bot
telegram-github-search-bot
A Github search bot for Telegram
Stars: ✭ 67 (+191.3%)
Mutual labels:  github-bot
lobicornis
🤖 [Myrmica Lobicornis 🐜] Bot: Update and Merge Pull Request
Stars: ✭ 27 (+17.39%)
Mutual labels:  github-bot
dx-automator
A tool for managing priorities across multiple GitHub repositories
Stars: ✭ 14 (-39.13%)
Mutual labels:  github-bot
background-check
A GitHub App built with probot that peforms a "background check" to identify users who have been toxic in the past, and shares their toxic activity in the maintainer’s repo.
Stars: ✭ 27 (+17.39%)
Mutual labels:  github-bot
watchdog
DEPRECATED -- Github Bot for Datadog codification
Stars: ✭ 26 (+13.04%)
Mutual labels:  github-bot
rebasebot
A GitHub bot that rebases your branches
Stars: ✭ 43 (+86.96%)
Mutual labels:  github-bot
performabot
Continuous performance analysis reports for software projects 🤖
Stars: ✭ 40 (+73.91%)
Mutual labels:  github-bot
AwesomeCompiler
The Big list of the github, open-source compilers.
Stars: ✭ 27 (+17.39%)
Mutual labels:  github-bot
sign-off-checker
A GitHub integration to ensure commits have "Signed-off-by"
Stars: ✭ 34 (+47.83%)
Mutual labels:  github-bot
BastionGitHubBot
🚀 A GitHub bot to automate common tasks in GitHub.
Stars: ✭ 15 (-34.78%)
Mutual labels:  github-bot
zorechka-bot
Github bot for keeping your Bazel dependencies up-to-date and clean
Stars: ✭ 25 (+8.7%)
Mutual labels:  github-bot
github-rebase-bot
A github bot that monitors repository PRs, rebases them and merges them as they pass tests
Stars: ✭ 29 (+26.09%)
Mutual labels:  github-bot

Container Builder GitHub CI connector for Google Cloud Functions

Cloud Function to use the PubSub events on the cloud-builds topic to update GitHub CI status.

This function is designed to work with GitHub repositories mirrored under Google Cloud Source Control named github-${config.repoOwner}-${ghRepoName}. If you set this through the Container Builder build trigger UI, this will be named automatically.

Deploy

Generate a new token with the repo:status OAuth scope.

Set the following on config in index.js:

  • ciUser
  • ciAccessToken
  • repoOwner

Deploy the cloud function to gcloud:

gcloud beta functions deploy setCIStatus --trigger-topic cloud-builds

Behavior

CI Status context will be one of:

  • ${projectId}/gcb: ${tags.join('/')}
  • ${projectId}/gcb: ${id.substring(0,8)}

Use the tags field in your build request to name your CI. Otherwise, it falls back to the build-GUID.

CI Status description will either be:

  • nothing
  • a join of all images to be published:
    gcr.io/project/image:v1 gcr.io/project/image:latest
  • above all, the duration of the build:
    3m 27s
  • possibly with the last-running build step and error status:
    3m 27s · test failure
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].