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