GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CodeEngine/github at main · ashishth09/CodeEngine

Expand file tree

/

github

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

github

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
build
build
 
 
github.go
github.go
 
 
run
run
 
 
sample-commit
sample-commit
 
 

README.md

Github

This sample will show how to get events from Github (via its webhooks) delivered to a Code Engine Application. In this case the Application will look for a "push" even and then pretend to kick off a new build for that repository. While the code in here doesn't do the build itself, to keep it simple, if you combine this sample with the "cecli" sample you should be able to do a full build pipeline.

In this sample we simulate the event from github via a "curl" command sending the "sample-commit" file as the event. In a real scenario you'll want to setup your github repo to send "push" events to your Code Engine application. You can do that by:

  • going to your repo's "setting"
  • click on "Webhooks"
  • press "Add webhook" button
  • in the "Payload URL" field put the URL to your Code Engine application
  • in the "Content type" drop-down, select "application/json"
  • In the "Secret" field entry some random string. This will be used to verify that the event it coming from your repo
  • leave "Just the push event." radio button selected
  • press "Add webhook"

You should immediately see a "ping" event sent to your application as a test.


As noted in the main README, this sample has two pieces:

  • a build script which will build the container image(s) used
  • a run script which deploys resources that use those images

The main purpose of this example is the run script, but the build script is included for complete educational (and reuse) purposes.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.