Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: Build and Push Docker Image
name: Build and Push Docker Image (DEPRECATED - use main-release.yml or docker-build-manual.yml)

# This workflow is deprecated and disabled
# Use main-release.yml for automatic releases on main branch
# Use docker-build-manual.yml for manual builds

on:
push:
tags:
- "v*"
workflow_call:
# Disabled - no triggers
workflow_dispatch:
inputs:
version:
description: "Version to tag the Docker images (e.g. 1.2.3)"
_disabled:
description: "This workflow is deprecated. Use docker-build-manual.yml instead."
required: false
type: string
workflow_dispatch:

env:
REGISTRY: ghcr.io
Expand Down
6 changes: 6 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ COPY Cargo.toml ./
COPY migration/Cargo.toml ./migration/
COPY entity/Cargo.toml ./entity/

# Create dummy source files for dependency caching
RUN mkdir -p src migration/src entity/src && \
echo "fn main() {}" > src/main.rs && \
echo "pub fn dummy() {}" > migration/src/lib.rs && \
echo "pub fn dummy() {}" > entity/src/lib.rs

# Build dependencies first (cached layer)
COPY --from=planner /usr/src/app/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json
Expand Down
Loading