-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from dduportal/chore/updatecli/track-matomo-ver…
…sion chore(updatecli) track matomo version
- Loading branch information
Showing
2 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
name: Bump Matomo Version | ||
|
||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
user: "{{ .github.user }}" | ||
email: "{{ .github.email }}" | ||
owner: "{{ .github.owner }}" | ||
repository: "{{ .github.repository }}" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
branch: "{{ .github.branch }}" | ||
|
||
sources: | ||
lastVersion: | ||
kind: githubrelease | ||
name: Get the latest released Matomo version | ||
spec: | ||
owner: matomo-org | ||
repository: matomo | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
versionfilter: | ||
kind: semver | ||
|
||
conditions: | ||
testDockerfile: | ||
name: "Does the Dockerfile have a FROM instruction which key is matomo?" | ||
kind: dockerfile | ||
disablesourceinput: true | ||
spec: | ||
file: Dockerfile | ||
instruction: | ||
keyword: FROM | ||
matcher: matomo | ||
checkDockerImagePublished: | ||
name: "Is latest Matomo released published as a Docker image?" | ||
kind: dockerimage | ||
disablesourceinput: true | ||
spec: | ||
image: matomo | ||
architectures: | ||
- amd64 | ||
- arm64 | ||
tag: '{{ source "lastVersion" }}-apache' | ||
|
||
targets: | ||
updateDockerfileVersion: | ||
name: "Update the value of FROM matomo:<...> in the Dockerfile" | ||
sourceid: lastVersion | ||
kind: dockerfile | ||
transformers: | ||
- addsuffix: "-apache" | ||
spec: | ||
file: Dockerfile | ||
instruction: | ||
keyword: FROM | ||
matcher: matomo | ||
# scmid: default | ||
|
||
# actions: | ||
# default: | ||
# kind: github/pullrequest | ||
# scmid: default | ||
# title: Bump Matomo Version to {{ source "lastVersion" }} | ||
# spec: | ||
# labels: | ||
# - dependencies | ||
# - matomo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
github: | ||
user: "Jenkins Infra Bot (updatecli)" | ||
email: "[email protected]" | ||
username: "jenkins-infra-bot" | ||
token: "UPDATECLI_GITHUB_TOKEN" | ||
branch: "main" | ||
owner: "jenkins-infra" | ||
repository: "docker-matomo" |