fix(release): v0.5.4 — fix Docker build and publish pipeline
- Dockerfile: add dummy src/bin/generate-openapi.rs in cacher stage to satisfy Cargo.toml [[bin]] target resolution during dependency caching - docker-publish.yml: add explicit ref to checkout steps so workflow_dispatch builds the correct tag instead of HEAD of main - docker-publish.yml: increase timeout to 180min for multi-arch QEMU builds - Bump version to 0.5.4 Closes #250
This commit is contained in:
+2
-1
@@ -8,8 +8,9 @@ COPY Cargo.toml Cargo.lock ./
|
||||
COPY build.rs ./
|
||||
COPY static static
|
||||
# Create a minimal project to download and cache dependencies
|
||||
RUN mkdir -p src && \
|
||||
RUN mkdir -p src/bin && \
|
||||
echo 'fn main() { println!("Dummy build for caching dependencies"); }' > src/main.rs && \
|
||||
echo 'fn main() {}' > src/bin/generate-openapi.rs && \
|
||||
cargo build --release && \
|
||||
rm -rf src static-dist target/release/deps/oxicloud* target/release/build/oxicloud-*
|
||||
# Stage 2: Build the application
|
||||
|
||||
Reference in New Issue
Block a user