File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build Codespace Container
2
+ on :
3
+ workflow_dispatch :
4
+
5
+ jobs :
6
+ build-and-push-containers :
7
+ runs-on : ubuntu-latest
8
+ permissions :
9
+ packages : write
10
+ contents : read
11
+ steps :
12
+ - name : Set up QEMU
13
+ uses : docker/setup-qemu-action@v3
14
+
15
+ - name : Set up Docker Buildx
16
+ uses : docker/setup-buildx-action@v3
17
+
18
+ - name : Login to Docker Registry
19
+ uses : docker/login-action@v2
20
+ with :
21
+ registry : ghcr.io
22
+ username : ${{ github.actor }}
23
+ password : ${{ inputs.github-token }}
24
+
25
+ - name : Build and push Docker container
26
+ uses : docker/build-push-action@v2
27
+ with :
28
+ context : .
29
+ file : /.devcontainer/containerized/Dockerfile # Path to the Dockerfile
30
+ push : true
31
+ tags : ghcr.io/green-coding-berlin/codespace-container:latest
You can’t perform that action at this time.
0 commit comments