This commit is contained in:
parent
80a09c8907
commit
e2efba4cc2
20
.drone.yml
Normal file
20
.drone.yml
Normal 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
|
@ -3,9 +3,15 @@ EXPOSE 8000
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY poetry.lock pyproject.toml ./
|
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==1.3.0 \
|
||||||
&& \
|
&& \
|
||||||
|
poetry add mysqlclient && \
|
||||||
poetry install
|
poetry install
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
4
captain-definition
Normal file
4
captain-definition
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"schemaVersion": 2,
|
||||||
|
"dockerfilePath": "./Dockerfile"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user