Compare commits
2
Commits
5b5d62e4fa
...
4e70e2d28d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e70e2d28d | ||
|
|
705db14521 |
@@ -21,7 +21,7 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: /root/.cache/pip
|
path: /root/.cache/pip
|
||||||
key: pip-{{ hashFiles('requirements*.txt') }}
|
key: pip
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|||||||
+2
-2
@@ -5,8 +5,8 @@ WORKDIR /code/
|
|||||||
COPY requirements.txt ./
|
COPY requirements.txt ./
|
||||||
COPY django_code ./
|
COPY django_code ./
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip,from=pip_cache pip install --upgrade pip
|
RUN --mount=type=cache,target=/root/.cache/pip pip install --upgrade pip
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip,from=pip_cache pip install --no-cache-dir -r requirements.txt
|
RUN --mount=type=cache,target=/root/.cache/pip pip install --no-cache-dir -r requirements.txt
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN python django_code/manage.py migrate
|
RUN python django_code/manage.py migrate
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user