git-resource
git-resource copied to clipboard
check_every doesn't work the same on a resource that references master vs a resources that references a tag
resource_types:
- name: git-resource
type: docker-image
source:
repository: concourse/git-resource
tag: "pr-223"
version: {digest: "sha256:42377c1385f16803cace1371262e8be945131cccbd0bf99dd6566f850642a5e4"}
resources:
- name: release-source
type: git-resource
webhook_token: <<token>>
# we'll use the token, but polling isn't disabled so set it to a large value
check_every: 24h
source:
uri: <<repo url>>
tag_filter: "[0-9]*"
username: bot
password: ((github-token))
- name: master-source
type: git
webhook_token: <<token>>
# we'll use the token, but polling isn't disabled so set it to a large value
check_every: 24h
source:
uri: <<repo url>>
branch: master
username: bot
password: ((github-token))```
webhook for master-source is created with ```Just the push event.``` option
where as the webhook for release-source is created with ```Let me select individual events.``` -> ```Rleases```
On a commit/merge to master - tasks are auto triggered as soon as the event is fired.
on a new release creation - tasks are auto triggered only when the time specified in check_every field is elapsed.