-
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: follow-up of UBI9 image introduction
- Loading branch information
1 parent
5b26913
commit cc27984
Showing
3 changed files
with
87 additions
and
7 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,55 @@ | ||
--- | ||
name: Bump UBI9 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: | ||
latestVersion: | ||
kind: dockerimage | ||
name: "Get the latest UBI9 Linux version" | ||
spec: | ||
image: "registry.access.redhat.com/ubi9/ubi" | ||
versionfilter: | ||
kind: semver | ||
transformers: | ||
- trimsuffix: "-source" | ||
|
||
targets: | ||
updateDockerfile: | ||
name: "Update the value of the base image (ARG UBI9_TAG) in the Dockerfile" | ||
kind: dockerfile | ||
sourceid: latestVersion | ||
spec: | ||
file: rhel/ubi9/Dockerfile | ||
instruction: | ||
keyword: "ARG" | ||
matcher: "UBI9_TAG" | ||
scmid: default | ||
updateDockerBake: | ||
name: "Update the default value of the variable UBI9_TAG in the docker-bake.hcl" | ||
kind: hcl | ||
sourceid: latestVersion | ||
spec: | ||
file: docker-bake.hcl | ||
path: variable.UBI9_TAG.default | ||
scmid: default | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
scmid: default | ||
title: Bump UBI9 version to {{ source "latestVersion" }} | ||
spec: | ||
labels: | ||
- dependencies | ||
- rhel-ubi9 |