-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore reworking updatecli manifest (#139)
* chore reworking updatecli manifest * chore (updatecli) : keep up to date the version of the docker image hashicorp-tools
- Loading branch information
Showing
3 changed files
with
73 additions
and
28 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
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,53 @@ | ||
title: Bump `hashicorp-tools` docker image version from lastest image release | ||
|
||
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: | ||
dockerHashicorpToolsImageVersion: | ||
kind: githubRelease | ||
spec: | ||
owner: "jenkins-infra" | ||
repository: "docker-hashicorp-tools" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
|
||
conditions: | ||
checkIfDockerImageIsPublished: | ||
name: "Check if the Docker Image is published" | ||
kind: dockerImage | ||
spec: | ||
image: "jenkinsciinfra/hashicorp-tools" | ||
architecture: amd64 | ||
|
||
targets: | ||
updateJenkinsFile: | ||
name: Update Jenkinsfile in groovy code | ||
kind: file | ||
spec: | ||
file: ./Jenkinsfile_k8s | ||
# Please note that the patterns are specified as "block scalars" (>) - https://yaml-multiline.info/ - with the last endline trimmed (-) to avoid tedious escaping of simple quotes | ||
matchpattern: >- | ||
'jenkinsciinfra/hashicorp-tools:(.*)' | ||
replacepattern: >- | ||
'jenkinsciinfra/hashicorp-tools:{{ source `dockerHashicorpToolsImageVersion` }}' | ||
scmID: default | ||
|
||
pullrequests: | ||
default: | ||
kind: github | ||
scmID: default | ||
targets: | ||
- updateJenkinsFile | ||
spec: | ||
labels: | ||
- dependencies |