<@U08286J5ZRU> you've been recommended by bastelfr...
# voxpupuli
m
@dhollinger you've been recommended by bastelfreak as knowledgeable about go-webhook. I cannot convince webhook to deploy another environment
Copy code
curl -k -X POST  --header "X-Gitlab-Event: Push Hook" -d '{"environment":"marcus_was_here"}' <http://localhost:4000/api/v1/r10k/environment> | ruby -e 'while r=gets; puts r.gsub( %r{\\n}, "\n").gsub( %r{\\t|\\u.{4}}, ""); end'

"INFO - Deploying environment /etc/puppetlabs/code/environments/production
INFO - Environment production is now at 68fb84ead7891ebc4d556335bc9a30b4952533b7
INFO - Using Puppetfile '/etc/puppetlabs/code/environments/production/Puppetfile'
INFO - Deploying module to /etc/puppetlabs/code/environments/production/modules/cron_core
It keeps deploying production. Excerpt from the log:
Copy code
journalctl -u webhook-go.service
Mar 18 09:49:08 puppet.localhost systemd[1]: Started Puppet Deployment API Server.
Mar 18 10:37:21 puppet.localhost webhook-go[98971]: [GIN] 2026/03/18 - 10:37:21 | 202 |  7.887775161s |             ::1 | POST     "/api/v1/r10k/environment"