develop #2
|
@ -31,8 +31,8 @@ steps:
|
|||
script:
|
||||
- cd /var/www/todo
|
||||
- git fetch
|
||||
- git reset --hard ${DRONE_COMMIT}
|
||||
- git checkout ${DRONE_BRANCH}
|
||||
- git reset --hard ${DRONE_COMMIT}
|
||||
- docker-compose down
|
||||
- docker-compose up -d --build
|
||||
- docker image prune -f
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
FROM python:3.11
|
||||
|
||||
WORKDIR /app
|
||||
#WORKDIR /app
|
||||
|
||||
CMD ["python3", "test.py"]
|
||||
# CMD ["python3", "test.py"]
|
|
@ -12,4 +12,6 @@ services:
|
|||
environment:
|
||||
TZ: "Asia/Shanghai"
|
||||
tty: true
|
||||
working_dir: /app
|
||||
command: ["python3", "test.py"]
|
||||
|
||||
|
|
Loading…
Reference in New Issue