Skip to content

Conversation

@ra2y
Copy link

@ra2y ra2y commented Jan 16, 2026

here is how to test this

  1. Make a config file containing the repo, branch, path. This is the project you are watching for pushes on. Make sure this project is a fork of an SCE project or in the SCE organization. My config file looks like
repos:
  - name: git-workshop
    branch: cicd-testing
    path: 'C:\Users\Ray\projects\sce-stuff\git-workshop'
    containers: 
      - app
  1. Start the docker container of the project you are watching
  2. Run the CICD project using python server.py
  3. Open up command prompt and hit the smee webhook with 3 parallel curl commands. This is the simulate the repo and branch updating. Here is what i used.
start /B curl -X POST <SMEE_WEBHOOK_URL_HERE> ^
  -H "Content-Type: application/json" ^
  -H "X-GitHub-Event: push" ^
  -d "{\"ref\": \"refs/heads/cicd-testing\", \"repository\": {\"name\": \"git-workshop\"}}"

start /B curl -X POST <SMEE_WEBHOOK_URL_HERE> ^
  -H "Content-Type: application/json" ^
  -H "X-GitHub-Event: push" ^
  -d "{\"ref\": \"refs/heads/cicd-testing\", \"repository\": {\"name\": \"git-workshop\"}}"

start /B curl -X POST <SMEE_WEBHOOK_URL_HERE> ^
  -H "Content-Type: application/json" ^
  -H "X-GitHub-Event: push" ^
  -d "{\"ref\": \"refs/heads/cicd-testing\", \"repository\": {\"name\": \"git-workshop\"}}"
  1. There should be logs showing that a new push was detected and the docker container is being recreated. The docker container should only restart twice. There should also be a log that says welcome to the deployment house if the manager thread starts correctly. There should also be a log that says brb kicking a guy out of line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant