Skip to content

Commit 3f1e54a

Browse files
authored
Create docker-image.yml
1 parent e5761b5 commit 3f1e54a

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
11+
build-lanency-bot:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Build the Docker image
18+
run: docker build . --file dockerfile.latency_bot --tag latency-bot:latest .
19+
- name: Save docker to tar
20+
run: docker save latency-bot:latest -o latency-bot.tar
21+
- name: Save as artifact
22+
uses: actions/upload-artifact@v3
23+
with:
24+
name: latency-image-tar
25+
path: latency-bot.tar
26+
27+
28+
29+
build-flask-uploader:
30+
31+
runs-on: ubuntu-latest
32+
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Build the Docker image
36+
run: docker build . --file dockerfile.uploader --tag flask-uploader:latest .
37+
- name: Save docker to tar
38+
run: docker save flask-uploader:latest -o flask-uploader.tar
39+
- name: Save as artifact
40+
uses: actions/upload-artifact@v3
41+
with:
42+
name: uploader-image-tar
43+
path: flask-uploader.tar

0 commit comments

Comments
 (0)