I am trying to trigger once off build for setting configurations for a GitHub Repo. Like configuring webhooks to a GitHub repo. Right now we have a job that we trigger manually to set webhooks, we are looking to automate it!
I tried to use time resource but it seems not to provide such options. Trigger only once!
---
resources:
- name: only-once
type: time
icon: clock-outline
source:
interval: -0s #should never trigger again! Even after if we check reosurce
jobs:
- name: job
public: true
plan:
- get: only-once
trigger: true
- task: simple-task
config:
platform: linux
image_resource:
type: registry-image
source: { repository: busybox }
run:
path: echo
args: ["Hello, world!"]
https://github.com/concourse/time-resource
Am positive many would have crossed this path, am not sure what I am missing to get this automated fully.
EDIT:
Am trying to see if there are any way to trigger a build only once.
Example, setting of webhooks to a GiHub repo from concourse pipeline. Right now we create a pipeline --> go to the pipeline in ui --> trigger a job that sets the Webhook to the GitHub repo.
Rather than us triggering the job to set the webhook, are there any way we can make the pipeline know, its a new repo so the webhook job needs to be run once.
Kindly let me know if I need to add more detail!