diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c612d42..4e5313d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -21,12 +21,12 @@ jobs: strategy: matrix: include: - - dockerfile: Dockerfile + - dockerfile: public/Dockerfile image: mywebsite-public - context: ./backend/public - - dockerfile: Dockerfile + context: ./backend + - dockerfile: task/Dockerfile image: mywebsite-task - context: ./backend/task + context: ./backend - dockerfile: Dockerfile image: mywebsite-frontend context: ./frontend diff --git a/backend/public/Dockerfile b/backend/public/Dockerfile index 46cca68..dfce2b2 100644 --- a/backend/public/Dockerfile +++ b/backend/public/Dockerfile @@ -2,8 +2,8 @@ FROM rust:1.88.0 WORKDIR /app -COPY ./public /app/public -COPY ../cache /app/cache +COPY ./public ./public +COPY ./cache ./cache RUN cargo build --release --manifest-path ./public/Cargo.toml diff --git a/backend/task/Dockerfile b/backend/task/Dockerfile index f1c340b..9235cf5 100644 --- a/backend/task/Dockerfile +++ b/backend/task/Dockerfile @@ -2,9 +2,9 @@ FROM rust:1.88.0 WORKDIR /app -COPY ./task /app/task -COPY ../cache /app/cache -COPY ../storage /app/storage +COPY ./task ./task +COPY ./cache ./cache +COPY ./storage ./storage RUN mkdir /app/posts RUN cargo build --release --manifest-path ./task/Cargo.toml