diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d8ce4f..b77d210 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,7 +80,7 @@ jobs: fi git fetch --no-tags origin main - if git diff --name-only origin/main HEAD -- Dockerfile Dockerfile.ci | grep -q .; then + if git diff --name-only origin/main HEAD -- Dockerfile | grep -q .; then echo 'A Dockerfile changed; the image will be built.' echo 'build=true' >> "$GITHUB_OUTPUT" else diff --git a/Dockerfile.ci b/Dockerfile.ci deleted file mode 100644 index a25665d..0000000 --- a/Dockerfile.ci +++ /dev/null @@ -1,35 +0,0 @@ -####################################### -# # -# Stage 1: building # -# # -####################################### - -FROM docker.io/rust:1.98.0-slim-trixie AS build - -RUN apt-get update && apt-get install -y build-essential pkg-config libssl-dev libsqlite3-dev - -WORKDIR /app - -COPY . /app - -RUN cargo build --release - -####################################### -# # -# Stage 2: packaging # -# # -####################################### - -FROM docker.io/debian:trixie-slim - -RUN apt-get update && apt-get install -y ca-certificates sqlite3 && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* - -WORKDIR /app - -COPY --from=build /app/target/release/baibot . - -ENTRYPOINT ["/bin/sh", "-c"] - -CMD ["/app/baibot"] diff --git a/renovate.json b/renovate.json index 88315c1..8968382 100644 --- a/renovate.json +++ b/renovate.json @@ -25,7 +25,7 @@ "platformAutomerge": false }, { - "description": "The release image's base (Dockerfile and Dockerfile.ci). Gated by ci.yml's docker-build job, which builds the image exactly as Publish does but with `push: false`, and which only runs when a Dockerfile actually changed.", + "description": "The release image's base (Dockerfile). Gated by ci.yml's docker-build job, which builds the image exactly as Publish does but with `push: false`, and which only runs when the Dockerfile actually changed.", "matchManagers": [ "dockerfile" ],