Skip to content

Commit 5bdfbd0

Browse files
authored
chore: add rust template
1 parent 37a6c8c commit 5bdfbd0

File tree

7 files changed

+69
-5
lines changed

7 files changed

+69
-5
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# x-release-please-start-version
2-
FROM ghcr.io/philips-software/amp-devcontainer-cpp:6.5.3
3-
# x-release-please-end
1+
FROM ghcr.io/philips-software/amp-devcontainer-cpp:${templateOption:imageVersion}
42

53
HEALTHCHECK NONE

.devcontainer/cpp-template/devcontainer-template.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@
66
"documentationURL": "https://github.com/philips-software/amp-devcontainer/blob/main/README.md",
77
"licenseURL": "https://github.com/philips-software/amp-devcontainer/blob/main/LICENSE",
88
"publisher": "philips-software",
9-
"optionalPaths": [".github/dependabot.yml"],
10-
"platforms": ["Any"]
9+
"options": {
10+
"imageVersion": {
11+
"type": "string",
12+
"description": "amp-devcontainer version",
13+
"default": "6.5.3"
14+
}
15+
},
16+
"optionalPaths": [
17+
".github/dependabot.yml"
18+
],
19+
"platforms": [
20+
"Any"
21+
]
1122
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM ghcr.io/philips-software/amp-devcontainer-rust:${templateOption:imageVersion}
2+
3+
HEALTHCHECK NONE
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"build": {
3+
"dockerfile": "Dockerfile"
4+
}
5+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
version: 2
3+
4+
updates:
5+
- package-ecosystem: docker
6+
directory: .devcontainer
7+
schedule:
8+
interval: weekly
9+
cooldown:
10+
default-days: 5
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"id": "rust-template",
3+
"version": "6.5.3",
4+
"name": "amp-devcontainer-rust",
5+
"description": "A modern, batteries-included software development environment for Rust",
6+
"documentationURL": "https://github.com/philips-software/amp-devcontainer/blob/main/README.md",
7+
"licenseURL": "https://github.com/philips-software/amp-devcontainer/blob/main/LICENSE",
8+
"publisher": "philips-software",
9+
"options": {
10+
"imageVersion": {
11+
"type": "string",
12+
"description": "amp-devcontainer version",
13+
"default": "6.5.3"
14+
}
15+
},
16+
"optionalPaths": [
17+
".github/dependabot.yml"
18+
],
19+
"platforms": [
20+
"Any"
21+
]
22+
}

release-please-config.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,21 @@
3030
"type": "json",
3131
"path": ".devcontainer/cpp-template/devcontainer-template.json",
3232
"jsonpath": "$.version"
33+
},
34+
{
35+
"type": "json",
36+
"path": ".devcontainer/cpp-template/devcontainer-template.json",
37+
"jsonpath": "$.options.imageVersion.default"
38+
},
39+
{
40+
"type": "json",
41+
"path": ".devcontainer/rust-template/devcontainer-template.json",
42+
"jsonpath": "$.version"
43+
},
44+
{
45+
"type": "json",
46+
"path": ".devcontainer/rust-template/devcontainer-template.json",
47+
"jsonpath": "$.options.imageVersion.default"
3348
}
3449
]
3550
}

0 commit comments

Comments
 (0)