Compare commits

..

No commits in common. "97663dc9429bf870ae7cd6b5b7f2cfda7642b642" and "e86cd394c58d2f3146a4a3e1383b268cdbd7119f" have entirely different histories.

6 changed files with 14 additions and 38 deletions

View File

@ -134,7 +134,7 @@ steps:
kind: pipeline
type: docker
name: main-tag-prod
name: main-merge-pull-request-prod
platform:
os: linux
@ -146,32 +146,16 @@ trigger:
- main
event:
include:
- tag
- push
clone:
disable: true
steps:
- name: clone-repo
image: alpine/git
commands:
- git clone ${DRONE_GIT_HTTP_URL} .
- git checkout ${DRONE_BRANCH}
- name: build-and-push-image
image: plugins/docker
settings:
registry:
from_secret: Œ
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: gitea.bearcatlog.com/bryant/todo
context: .
dockerfile: ./Dockerfile
tags:
- ${DRONE_TAG}
# auto_tag: true
purge: true
compress: true
# TODO 通知 k8s 更新镜像
- name: semantic-release
image: lework/semantic-release
settings:
git_login:
from_secret: gitea_user
git_password:
from_secret: gitea_password

View File

@ -1,9 +1,5 @@
FROM python:3.11
WORKDIR /app
#WORKDIR /app
COPY requirements.txt .
RUN python3 -m pip install -i https://mirrors.cloud.tencent.com/pypi/simple --trusted-host=mirrors.cloud.tencent.com -r requirements.txt
CMD ["python3", "app.py"]
# CMD ["python3", "test.py"]

4
app.py
View File

@ -1,4 +0,0 @@
from apiflask import APIFlask
app = APIFlask(__name__)
app.run()

View File

@ -12,10 +12,10 @@ services:
environment:
TZ: "Asia/Shanghai"
tty: true
working_dir: /app
command: ["python3", "test.py"]
networks:
- todo-service
ports:
- "5010:5000"
networks:
todo-service:

View File

@ -1 +0,0 @@
apiflask>=1.3.1

1
test.py Normal file
View File

@ -0,0 +1 @@
print('hello drone')