Skip to content

Commit 5bb05e7

Browse files
committed
Add CI workflow
1 parent 4b3ffb6 commit 5bb05e7

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: CI
3+
on:
4+
workflow_dispatch:
5+
push:
6+
jobs:
7+
build-linux:
8+
name: Build Containers (Linux)
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
- name: Login to DockerHub
14+
uses: docker/login-action@v3
15+
with:
16+
username: ${{ secrets.DOCKERHUB_USERNAME }}
17+
password: ${{ secrets.DOCKERHUB_TOKEN }}
18+
- name: Docker Build
19+
run: |
20+
docker build -f linux/Dockerfile -t gesellix/echo-server:local-linux .
21+
build-windows:
22+
name: Build Containers (Windows)
23+
runs-on: windows-2022
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
- name: Login to DockerHub
28+
uses: docker/login-action@v3
29+
with:
30+
username: ${{ secrets.DOCKERHUB_USERNAME }}
31+
password: ${{ secrets.DOCKERHUB_TOKEN }}
32+
- name: Docker Build
33+
run: |
34+
docker build -f windows/Dockerfile -t gesellix/echo-server:local-windows .
35+
...

0 commit comments

Comments
 (0)