Skip to content

Commit 697bf2e

Browse files
committed
Add Docker build to CI workflow
1 parent 317e9cf commit 697bf2e

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: CI
22

33
on:
44
push:
@@ -28,3 +28,25 @@ jobs:
2828

2929
- name: Run tests
3030
run: cargo test
31+
32+
docker:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v4
36+
37+
- name: Set up Docker Buildx
38+
uses: docker/setup-buildx-action@v3
39+
40+
- name: Build Docker image
41+
uses: docker/build-push-action@v5
42+
with:
43+
context: .
44+
load: true
45+
tags: rustymcpriceface:test
46+
47+
- name: Verify Docker image runs
48+
run: |
49+
docker run -d --name test-container -e DISCORD_TOKEN_BTC=test rustymcpriceface:test
50+
sleep 10
51+
docker logs test-container
52+
docker rm -f test-container

0 commit comments

Comments
 (0)