Skip to content

Commit f5fca85

Browse files
committed
ci: build docker compose
1 parent a642f7b commit f5fca85

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,19 @@ jobs:
3131
run: cargo build --verbose --all
3232
- name: cargo test
3333
run: cargo test --verbose --all
34+
docker_build:
35+
name: docker build
36+
runs-on: self-hosted
37+
steps:
38+
- uses: actions/checkout@v3
39+
- name: Start Docker Daemon
40+
run: |
41+
dockerd &
42+
- name: Wait for Docker Daemon to start
43+
run: |
44+
until docker info; do
45+
echo "Waiting for Docker daemon to start..."
46+
sleep 1
47+
done
48+
- name: Build docker image
49+
run: docker compose -f docker/docker-compose.yml build

docker/gha-runner.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ RUN \
2727
cmake \
2828
make \
2929
libssl-dev \
30-
pkg-config
30+
pkg-config \
31+
docker-compose-plugin
3132

3233
RUN \
3334
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $RUSTC_VERSION

sugondat/chain/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ RUN \
3737
RUN \
3838
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $RUSTC_VERSION
3939
RUN $CARGO_HOME/bin/rustup target add wasm32-unknown-unknown
40+
RUN $CARGO_HOME/bin/rustup component add rust-src
4041

4142
WORKDIR /sugondat
4243
COPY . /sugondat

0 commit comments

Comments
 (0)