Skip to content

Commit 9f55489

Browse files
committed
Add updatecli manifest to update zot container for testcontainers
Signed-off-by: Valentin Delaye <jonesbusy@users.noreply.github.com>
1 parent 47abaaa commit 9f55489

2 files changed

Lines changed: 52 additions & 1 deletion

File tree

updatecli/updatecli.d/maven.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,3 @@ actions:
6464
spec:
6565
labels:
6666
- dependencies
67-
- Dockerfile

updatecli/updatecli.d/zot.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
name: Bump zot test container
3+
4+
scms:
5+
default:
6+
kind: github
7+
spec:
8+
user: "{{ .github.user }}"
9+
email: "{{ .github.email }}"
10+
owner: "{{ .github.owner }}"
11+
repository: "{{ .github.repository }}"
12+
token: "{{ requiredEnv .github.token }}"
13+
username: "{{ .github.username }}"
14+
branch: "{{ .github.branch }}"
15+
16+
sources:
17+
zotLatestVersion:
18+
kind: githubrelease
19+
spec:
20+
owner: project-zot
21+
repository: zot
22+
token: "{{ requiredEnv .github.token }}"
23+
username: "{{ .github.username }}"
24+
versioning:
25+
kind: semver
26+
27+
conditions:
28+
zotImageExists:
29+
name: zot image must exists
30+
kind: dockerimage
31+
spec:
32+
image: ghcr.io/project-zot/zot-linux-amd64
33+
34+
targets:
35+
updateZotContainer:
36+
name: "Update the value in the ZotContainer.java file"
37+
kind: file
38+
sourceid: zotLatestVersion
39+
spec:
40+
file: src/test/java/land/oras/utils/ZotContainer.java
41+
matchPattern: "ghcr.io/project-zot/zot-linux-amd64:v(\\d.\\d.\\d{1,2})"
42+
replacePattern: 'ghcr.io/project-zot/zot-linux-amd64:{{ source "zotLatestVersion" }}'
43+
scmid: default
44+
45+
actions:
46+
default:
47+
kind: github/pullrequest
48+
scmid: default
49+
title: 'Bump zot {{ source "zotLatestVersion" }}'
50+
spec:
51+
labels:
52+
- dependencies

0 commit comments

Comments
 (0)