forked from jenkins-infra/pipeline-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert updatecli changes as in other PR
- Loading branch information
Showing
4 changed files
with
123 additions
and
33 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
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,67 @@ | ||
--- | ||
name: Bump `docker-helmfile` 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 updatecli version | ||
spec: | ||
owner: "jenkins-infra" | ||
repository: "docker-helmfile" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
versionfilter: | ||
kind: semver | ||
transformers: | ||
- trimprefix: v | ||
|
||
conditions: | ||
checkIfDockerImageIsPublished: | ||
name: "Check if the Docker Image is published" | ||
kind: dockerimage | ||
spec: | ||
image: "jenkinsciinfra/helmfile" | ||
architecture: amd64 | ||
|
||
targets: | ||
updateGroovyCode: | ||
name: Update docker-helmfile in groovy code | ||
kind: file | ||
spec: | ||
file: vars/updatecli.groovy | ||
# Please note that the patterns are specified as "block scalars" (>) with the last endline trimmed (-) to avoid tedious escaping of simple quotes | ||
matchpattern: >- | ||
'jenkinsciinfra/helmfile:(.*)' | ||
replacepattern: >- | ||
'jenkinsciinfra/helmfile:{{ source `lastVersion` }}' | ||
scmid: default | ||
updateDoc: | ||
name: Update docker-helmfile in documentation | ||
kind: file | ||
spec: | ||
file: vars/updatecli.txt | ||
matchpattern: jenkinsciinfra/helmfile:(\d+\.\d+\.\d+)\" | ||
replacepattern: jenkinsciinfra/helmfile:{{ source `lastVersion` }}" | ||
scmid: default | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
title: Bump `docker-helmfile` version to {{ source "lastVersion" }} | ||
scmid: default | ||
spec: | ||
labels: | ||
- dependencies | ||
- jenkinsciinfra/helmfile |
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
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