From 48339cb5744c469996ed03f05f1c7a46f12d3146 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sun, 18 Jun 2023 19:52:42 +0800 Subject: [PATCH] ci: musl target. --- .gitea/workflows/built-bin.yaml | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/built-bin.yaml b/.gitea/workflows/built-bin.yaml index f2c59e5..c238f04 100644 --- a/.gitea/workflows/built-bin.yaml +++ b/.gitea/workflows/built-bin.yaml @@ -48,7 +48,7 @@ jobs: uses: https://github.com/actions-rs/cargo@v1 with: command: build - args: --target x86_64-unknown-linux-musl --release + args: --target x86_64-unknown-linux-musl --release --bin network-monitor --target-dir ./build - name: Log in to the Container registry uses: https://github.com/docker/login-action@v2 diff --git a/Dockerfile b/Dockerfile index 7ced9fc..5aeb39d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM rust:1-slim-buster WORKDIR /app -COPY /workspace/display-ambient-light/network-monitor . +COPY ./target/release/network-monitor . CMD ["/app/network-monitor"]