File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " BPP School of Technology Development Container" ,
3
+ "image" : " mcr.microsoft.com/devcontainers/base:debian" ,
4
+ "features" : {
5
+ "ghcr.io/devcontainers/features/java:1" : {
6
+ "javaVersion" : " 17" ,
7
+ "maven" : " true" ,
8
+ "gradle" : " true"
9
+ },
10
+ "ghcr.io/devcontainers/features/node:1" : {
11
+ "version" : " lts"
12
+ },
13
+ "ghcr.io/devcontainers/features/python:1" : {
14
+ "version" : " 3"
15
+ }
16
+ },
17
+ "customizations" : {
18
+ "vscode" : {
19
+ "settings" : {},
20
+ "extensions" : [
21
+ " bierner.github-markdown-preview"
22
+ ]
23
+ }
24
+ }
25
+ }
Original file line number Diff line number Diff line change
1
+ name : Build and Publish Devcontainer
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ workflow_dispatch :
7
+
8
+ env :
9
+ REGISTRY : ghcr.io
10
+ IMAGE_NAME : ${{ github.repository }}
11
+
12
+ jobs :
13
+ build-and-push-image :
14
+ runs-on : ubuntu-latest
15
+ permissions :
16
+ contents : read
17
+ packages : write
18
+
19
+ steps :
20
+ - name : Checkout repository
21
+ uses : actions/checkout@v3
22
+
23
+ - name : Log in to the Container registry
24
+ uses : docker/login-action@v2
25
+ with :
26
+ registry : ${{ env.REGISTRY }}
27
+ username : ${{ github.actor }}
28
+ password : ${{ secrets.GITHUB_TOKEN }}
29
+
30
+ - name : Build and push Dev Container image
31
+ uses : devcontainers/ci@v0.3
32
+ with :
33
+ imageName : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
34
+ push : always
35
+
36
+ - name : Image digest
37
+ run : echo ${{ steps.build.outputs.imageDigest }}
You can’t perform that action at this time.
0 commit comments