Skip to content

Commit

Permalink
Merge pull request #4 from dduportal/chore/updatecli/track-matomo-ver…
Browse files Browse the repository at this point in the history
…sion

chore(updatecli) track matomo version
  • Loading branch information
lemeurherve authored Mar 25, 2024
2 parents c2dbf89 + 9e5285a commit 07459f4
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
71 changes: 71 additions & 0 deletions updatecli/updatecli.d/matomo.yaml
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
8 changes: 8 additions & 0 deletions updatecli/values.yaml
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"

0 comments on commit 07459f4

Please sign in to comment.