Created
April 2, 2021 08:43
-
-
Save olblak/cb218c8896e6a6997c578f9845a6f5e6 to your computer and use it in GitHub Desktop.
?
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
--- | |
title: "[golang base image] Bump version" | |
sources: | |
getGolangVersion: | |
kind: githubRelease | |
name: Get the latest Golang version | |
transformers: | |
- trimPrefix: "go" | |
spec: | |
owner: "golang" | |
repository: "go" | |
token: "{{ requiredEnv .github.token }}" | |
username: "{{ .github.username }}" | |
versionFilter: | |
kind: regex | |
pattern: 'go1.15.(\d*)' | |
conditions: | |
dockerfileArgGoVersion: | |
name: "Does the Dockerfile have an ARG instruction which key is GO_VERSION?" | |
kind: dockerfile | |
spec: | |
file: Dockerfile | |
instruction: | |
keyword: "ARG" | |
matcher: "GO_VERSION" | |
targets: | |
updateCstGoVersion: | |
name: "Update the value of GO_VERSION in the test harness" | |
sourceID: getGolangVersion | |
kind: yaml | |
spec: | |
file: "cst.yml" | |
key: "metadataTest.labels[2].value" | |
scm: | |
github: | |
user: "{{ .github.user }}" | |
email: "{{ .github.email }}" | |
owner: "{{ .github.owner }}" | |
repository: "{{ .github.repository }}" | |
token: "{{ requiredEnv .github.token }}" | |
username: "{{ .github.username }}" | |
branch: "{{ .github.branch }}" | |
updateDockerfileArgGoVersion: | |
name: "Update the value of ARG GO_VERSION in the Dockerfile" | |
sourceID: getGolangVersion | |
kind: dockerfile | |
spec: | |
file: Dockerfile | |
instruction: | |
keyword: "ARG" | |
matcher: "GO_VERSION" | |
scm: | |
github: | |
user: "{{ .github.user }}" | |
email: "{{ .github.email }}" | |
owner: "{{ .github.owner }}" | |
repository: "{{ .github.repository }}" | |
token: "{{ requiredEnv .github.token }}" | |
username: "{{ .github.username }}" | |
branch: "{{ .github.branch }}" | |
# https://www.updatecli.io/docs/prologue/introduction/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment