Skip to content

Commit 5bb82d4

Browse files
committed
feat(updatecli): add automatic tracking for devcontainer dependencies
Create UpdateCLI manifest to automatically track and update: - Docker version in docker-in-docker feature (currently 27.0) - GitHub CLI version in github-cli feature (currently 2.62) The manifest uses semantic versioning filters to stay within compatible minor version ranges (~27.0 and ~2.62 patterns). Updates will be proposed via automated pull requests with the 'dependencies' and 'devcontainer' labels. This ensures our Codespaces environment stays up-to-date with the latest stable Docker and GitHub CLI releases automatically.
1 parent 58aa8d3 commit 5bb82d4

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
name: 'deps(devcontainer): update Docker and GitHub CLI versions'
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+
dockerLatestMinor:
18+
name: Get latest Docker minor version
19+
kind: githubrelease
20+
spec:
21+
owner: moby
22+
repository: moby
23+
token: "{{ requiredEnv .github.token }}"
24+
versionfilter:
25+
kind: semver
26+
pattern: '~27.0'
27+
28+
githubcliLatestMinor:
29+
name: Get latest GitHub CLI minor version
30+
kind: githubrelease
31+
spec:
32+
owner: cli
33+
repository: cli
34+
token: "{{ requiredEnv .github.token }}"
35+
versionfilter:
36+
kind: semver
37+
pattern: '~2.62'
38+
39+
targets:
40+
dockerVersion:
41+
name: 'deps(devcontainer): update Docker version'
42+
scmid: default
43+
kind: json
44+
spec:
45+
file: .devcontainer/devcontainer.json
46+
key: $.features."ghcr.io/devcontainers/features/docker-in-docker:2".version
47+
sourceid: dockerLatestMinor
48+
transformers:
49+
- trimprefix: v
50+
51+
githubcliVersion:
52+
name: 'deps(devcontainer): update GitHub CLI version'
53+
scmid: default
54+
kind: json
55+
spec:
56+
file: .devcontainer/devcontainer.json
57+
key: $.features."ghcr.io/devcontainers/features/github-cli:1".version
58+
sourceid: githubcliLatestMinor
59+
transformers:
60+
- trimprefix: v
61+
62+
actions:
63+
default:
64+
kind: github/pullrequest
65+
scmid: default
66+
title: 'chore(deps): update devcontainer dependencies'
67+
spec:
68+
labels:
69+
- dependencies
70+
- devcontainer

0 commit comments

Comments
 (0)