Skip to content

Commit 4e21251

Browse files
committed
add workflow to build codespace container
1 parent 50b9277 commit 4e21251

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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

0 commit comments

Comments
 (0)