Add deploy CI
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-17 21:47:43 +01:00
parent 80a09c8907
commit e2efba4cc2
3 changed files with 31 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
kind: pipeline
type: docker
name: default
steps:
- name: deploy
image: caprover/cli-caprover:2.2.3
commands:
- caprover deploy
environment:
CAPROVER_URL:
from_secret: caprover_url
CAPROVER_APP:
from_secret: caprover_app
CAPROVER_APP_TOKEN:
from_secret: app_token
CAPROVER_BRANCH: main
when:
branch:
- main
+7 -1
View File
@@ -3,9 +3,15 @@ EXPOSE 8000
WORKDIR /app
COPY poetry.lock pyproject.toml ./
RUN pip3 install \
RUN apt update && apt install -y -qq \
python3-dev \
default-libmysqlclient-dev \
build-essential \
&& \
pip3 install \
poetry==1.3.0 \
&& \
poetry add mysqlclient && \
poetry install
COPY . /app
+4
View File
@@ -0,0 +1,4 @@
{
"schemaVersion": 2,
"dockerfilePath": "./Dockerfile"
}