diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c2b7138..c612d42 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -23,13 +23,13 @@ jobs: include: - dockerfile: Dockerfile image: mywebsite-public - context: . + context: ./backend/public - dockerfile: Dockerfile image: mywebsite-task - context: . + context: ./backend/task - dockerfile: Dockerfile image: mywebsite-frontend - context: . + context: ./frontend steps: - name: Checkout repository diff --git a/backend/public/Dockerfile b/backend/public/Dockerfile index b4f4061..26aa5fb 100644 --- a/backend/public/Dockerfile +++ b/backend/public/Dockerfile @@ -2,8 +2,8 @@ FROM rust:1.88.0 WORKDIR /app -COPY ./backend/public ./public -COPY ./backend/cache ./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 8498c70..fc44846 100644 --- a/backend/task/Dockerfile +++ b/backend/task/Dockerfile @@ -2,9 +2,9 @@ FROM rust:1.88.0 WORKDIR /app -COPY ./backend/task ./task -COPY ./backend/cache ./cache -COPY ./backend/storage ./storage +COPY ./task ./task +COPY ../cache ./cache +COPY ../storage ./storage RUN mkdir /app/posts RUN cargo build --release --manifest-path ./task/Cargo.toml