Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: By default undefine pipelineid for autodiscovery policies #25

Merged
merged 1 commit into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions updatecli/policies/autodiscovery/all/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Changelog

# 0.4.0
## 0.5.0

* By default undefined pipelineid

## 0.4.0

* Allow to override pipeline name

# 0.3.0
## 0.3.0

* Swap default order for scm configuration to use environment variable if nothing else is defined

# 0.2.0
## 0.2.0

# 0.1.0
## 0.1.0

* Init policy
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/all/Policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors:
url: "https://github.com/updatecli/policies/"
documentation: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/all/README.md"
source: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/all/"
version: 0.4.0
version: 0.5.0
vendor: Updatecli Project

licenses:
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/all/updatecli.d/default.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
name: '{{ .name }}'

#{{ if .pipelineid }}
pipelineid: '{{ .pipelineid }}'
#{{ end }}

autodiscovery:
groupby: {{ .autodiscovery.groupby }}
{{ if or (.scm.enabled) (env "GITHUB_REPOSITORY") }}
Expand Down
2 changes: 2 additions & 0 deletions updatecli/policies/autodiscovery/all/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: 'deps: Bump all dependencies'

#pipelineid: all

autodiscovery:
groupby: all

Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/cargo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.3.0

* By default undefined pipelineid

## 0.2.0

* Allow to override pipeline name
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/cargo/Policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors:
url: "https://github.com/updatecli/policies/"
documentation: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/cargo/README.md"
source: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/cargo/"
version: 0.2.0
version: 0.3.0
vendor: Updatecli Project

licenses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
# {{ $GitHubUsername := env "GITHUB_ACTOR"}}

name: '{{ .name }}'
pipelineid: {{ .pipelineid }}
#{{ if .pipelineid }}
pipelineid: '{{ .pipelineid }}'
#{{ end }}

autodiscovery:
groupby: {{ .groupby }}
#{{ if or (.scm.enabled) (env "GITHUB_REPOSITORY") }}
scmid: default
actionid: default
# {{ end }}
#{{ end }}

crawlers:
cargo:
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/cargo/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "deps(cargo): bump all policies"

pipelineid: cargo/autodiscovery
# pipelineid: cargo/autodiscovery
automerge: false

scm:
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/dockercompose/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.3.0

* By default, undefined pipelineid

## 0.2.0

* Allow to override pipeline name
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/dockercompose/Policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors:
url: "https://github.com/updatecli/policies/"
documentation: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/dockercompose/README.md"
source: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/dockercompose/"
version: 0.2.0
version: 0.3.0
vendor: Updatecli Project

licenses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
# {{ $GitHubUsername := env "GITHUB_ACTOR"}}

name: '{{ .name }}'
pipelineid: {{ .pipelineid }}
#{{ if .pipelineid }}
pipelineid: '{{ .pipelineid }}'
#{{ end }}

autodiscovery:
groupby: {{ .groupby }}
#{{ if or (.scm.enabled) (env "GITHUB_REPOSITORY") }}
scmid: default
actionid: default
# {{ end }}
#{{ end }}

crawlers:
dockercompose:
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/dockercompose/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "deps(dockercompose): bump dependencies"
pipelineid: dockercompose/autodiscovery
# pipelineid: dockercompose/autodiscovery
automerge: false

scm:
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/dockerfile/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.3.0

* By default, undefined pipelineid

## 0.2.0

* Allow to override pipeline name
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/dockerfile/Policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors:
url: "https://github.com/updatecli/policies/"
documentation: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/dockerfile/README.md"
source: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/dockerfile/"
version: 0.2.0
version: 0.3.0
vendor: Updatecli Project

licenses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
# {{ $GitHubUsername := env "GITHUB_ACTOR"}}

name: '{{ .name }}'
pipelineid: {{ .pipelineid }}
#{{ if .pipelineid }}
pipelineid: '{{ .pipelineid }}'
#{{ end }}

autodiscovery:
groupby: {{ .groupby }}
#{{ if or (.scm.enabled) (env "GITHUB_REPOSITORY") }}
scmid: default
actionid: default
# {{ end }}
#{{ end }}

crawlers:
dockerfile:
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/dockerfile/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "deps(dockerfile): bump all dependencies"
pipelineid: dockerfile/autodiscovery
#pipelineid: dockerfile/autodiscovery
automerge: false

scm:
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/flux/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.3.0

* By default, undefined pipelineid

## 0.2.0

* Allow to override pipeline name
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/flux/Policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors:
url: "https://github.com/updatecli/policies/"
documentation: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/flux/README.md"
source: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/flux/"
version: 0.2.0
version: 0.3.0
vendor: Updatecli Project

licenses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
# {{ $GitHubUsername := env "GITHUB_ACTOR"}}

name: '{{ .name }}'
pipelineid: {{ .pipelineid }}
#{{ if .pipelineid }}
pipelineid: '{{ .pipelineid }}'
#{{ end }}

autodiscovery:
groupby: {{ .groupby }}
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/flux/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "deps(flux): bump all dependencies"
pipelineid: flux/autodiscovery
#pipelineid: flux/autodiscovery
automerge: false

scm:
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/golang/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.7.0

* By default, undefined pipelineid

## 0.6.0

* Allow to set pipeline name using `name`
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/golang/Policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors:
url: "https://github.com/updatecli/policies/"
documentation: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/golang/README.md"
source: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/golang/"
version: 0.6.0
version: 0.7.0
vendor: Updatecli Project

licenses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
# {{ $GitHubUsername := env "GITHUB_ACTOR"}}

name: '{{ .name }}'
#{{ if .pipelineid }}
pipelineid: '{{ .pipelineid }}'
#{{ end }}

autodiscovery:
groupby: {{ .groupby }}
#{{ if or (.scm.enabled) (env "GITHUB_REPOSITORY") }}
scmid: default
actionid: default
# {{ end }}
#{{ end }}

crawlers:
golang/gomod:
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/golang/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'deps(golang): Bump all dependencies'
pipelineid: golang/autodiscovery
#pipelineid: golang/autodiscovery
automerge: false

scm:
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/helm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

# 0.3.0

* By default, undefined pipelineid

## 0.2.0

* Allow to override pipeline name
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/helm/Policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors:
url: "https://github.com/updatecli/policies/"
documentation: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/helm/README.md"
source: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/helm/"
version: 0.2.0
version: 0.3.0
vendor: Updatecli Project

licenses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
# {{ $GitHubUsername := env "GITHUB_ACTOR"}}

name: '{{ .name }}'
pipelineid: {{ .pipelineid }}
#{{ if .pipelineid }}
pipelineid: '{{ .pipelineid }}'
#{{ end }}

autodiscovery:
groupby: {{ .groupby }}
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/helm/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "deps(helm): bump all dependencies"
pipelineid: helm/autodiscovery
#pipelineid: helm/autodiscovery
automerge: false

scm:
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/helmfile/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.3.0

* By default, undefined pipelineid

## 0.2.0

* Allow to override pipeline name
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/helmfile/Policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors:
url: "https://github.com/updatecli/policies/"
documentation: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/helmfile/README.md"
source: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/helmfile/"
version: 0.2.0
version: 0.3.0
vendor: Updatecli Project

licenses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
# {{ $GitHubUsername := env "GITHUB_ACTOR"}}

name: '{{ .name }}'
pipelineid: {{ .pipelineid }}
#{{ if .pipelineid }}
pipelineid: '{{ .pipelineid }}'
#{{ end }}

autodiscovery:
groupby: {{ .groupby }}
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/helmfile/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name : "deps(helmfile): bump all dependencies"
pipelineid: helmfile/autodiscovery
#pipelineid: helmfile/autodiscovery
automerge: false

scm:
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/ko/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.3.0

* By default, undefined pipelineid

## 0.2.0

* Allow to override pipeline name
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/ko/Policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors:
url: "https://github.com/updatecli/policies/"
documentation: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/ko/README.md"
source: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/ko/"
version: 0.2.0
version: 0.3.0
vendor: Updatecli Project

licenses:
Expand Down
4 changes: 3 additions & 1 deletion updatecli/policies/autodiscovery/ko/updatecli.d/default.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
# {{ $GitHubUsername := env "GITHUB_ACTOR"}}

name: '{{ .name }}'
pipelineid: {{ .pipelineid }}
#{{ if .pipelineid }}
pipelineid: '{{ .pipelineid }}'
#{{ end }}

autodiscovery:
groupby: {{ .groupby }}
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/ko/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "deps(ko): bump all dependencies"
pipelineid: ko/autodiscovery
#pipelineid: ko/autodiscovery
automerge: false

scm:
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/kubernetes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.3.0

* By default, undefined pipelineid

## 0.2.0

* Allow to override pipeline name
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/autodiscovery/kubernetes/Policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors:
url: "https://github.com/updatecli/policies/"
documentation: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/kubernetes/README.md"
source: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/kubernetes/"
version: 0.2.0
version: 0.3.0
vendor: Updatecli Project

licenses:
Expand Down
Loading