Skip to content

Commit 7d40f8c

Browse files
authored
feat: add devcontainer template for cpp
1 parent 3a81fe8 commit 7d40f8c

File tree

6 files changed

+62
-1
lines changed

6 files changed

+62
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# x-release-please-start-version
2+
FROM ghcr.io/philips-software/amp-devcontainer-cpp:6.5.3
3+
# x-release-please-end
4+
5+
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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
version: 2
3+
4+
updates:
5+
- package-ecosystem: docker
6+
directory: .devcontainer
7+
schedule:
8+
interval: weekly
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"id": "cpp-template",
3+
"version": "6.5.3",
4+
"name": "amp-devcontainer-cpp",
5+
"description": "A modern, batteries-included software development environment for C++",
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+
"optionalPaths": [
10+
".github/dependabot.yml"
11+
],
12+
"platforms": [
13+
"Any"
14+
]
15+
}

.github/workflows/continuous-integration.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,27 @@ jobs:
6868
with:
6969
files: test-report-*.xml
7070

71+
publish-devcontainer-templates:
72+
name: 📝 Publish templates
73+
runs-on: ubuntu-latest
74+
permissions:
75+
packages: write # is needed by devcontainers/action to write templates as OCI artifacts
76+
contents: write # is needed by devcontainers/action to update README.md
77+
pull-requests: write # is needed by devcontainers/action to create PRs with changes to README.md
78+
steps:
79+
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
80+
with:
81+
disable-sudo: true
82+
egress-policy: audit
83+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
84+
with:
85+
persist-credentials: false
86+
- uses: devcontainers/action@1082abd5d2bf3a11abccba70eef98df068277772 # v1.4.3
87+
with:
88+
disable-repo-tagging: true
89+
publish-templates: true
90+
base-path-to-templates: .devcontainer
91+
7192
generate-documents:
7293
name: 📄 Documentation
7394
uses: ./.github/workflows/wc-document-generation.yml

release-please-config.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,12 @@
2424
"release-type": "simple"
2525
}
2626
},
27-
"plugins": ["sentence-case"]
27+
"plugins": ["sentence-case"],
28+
"extra-files": [
29+
{
30+
"type": "json",
31+
"path": ".devcontainer/cpp-template/devcontainer-template.json",
32+
"jsonpath": "$.version"
33+
}
34+
]
2835
}

0 commit comments

Comments
 (0)