Tweak gitlab pipeline
This commit is contained in:
parent
49998012d7
commit
3eb6a07ece
3 changed files with 3 additions and 6 deletions
|
@ -67,7 +67,6 @@ publish:
|
|||
<<: *build
|
||||
stage: publish
|
||||
variables:
|
||||
GIT_STRATEGY: none
|
||||
POETRY_OPTIONS: "--no-dev"
|
||||
before_script:
|
||||
- export IMAGE=$IMAGE_LATEST
|
||||
|
|
|
@ -28,17 +28,14 @@ RUN git rev-parse HEAD | tee /version
|
|||
## Beginning of runtime image
|
||||
FROM python:3.8.6-slim-buster as prod
|
||||
|
||||
RUN apt-get update \
|
||||
# Git is required for pre-commit checks
|
||||
&& apt-get install -y --no-install-recommends git \
|
||||
&& echo "Europe/Paris" > /etc/timezone \
|
||||
RUN echo "Europe/Paris" > /etc/timezone \
|
||||
&& mkdir /db
|
||||
|
||||
COPY --from=venv /app/venv /app/venv/
|
||||
ENV PATH /app/venv/bin:$PATH
|
||||
|
||||
WORKDIR /app
|
||||
COPY manage.py LICENSE .pre-commit-config.yaml pyproject.toml ./
|
||||
COPY manage.py LICENSE pyproject.toml ./
|
||||
COPY docker ./docker/
|
||||
COPY blog ./blog/
|
||||
COPY attachments ./attachments/
|
||||
|
|
|
@ -5,6 +5,7 @@ target-version = ['py38']
|
|||
profile = "black"
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
addopts = "--color=yes"
|
||||
minversion = "6.0"
|
||||
DJANGO_SETTINGS_MODULE = "blog.settings"
|
||||
testpaths = [
|
||||
|
|
Reference in a new issue