Compare commits

...
5 Commits
Author SHA1 Message Date
jianxin c42ab19b06 add tsinghua pypi mirror
continuous-integration/drone/push Build is passing
2023-09-03 23:50:15 +08:00
jianxin 291ddc3b60 add ustc pypi mirror
continuous-integration/drone/push Build was killed
2023-09-03 23:47:48 +08:00
jianxin a306ea4f1a modify drone.yml
continuous-integration/drone/push Build was killed
2023-09-02 22:01:08 +08:00
jianxin aa76bf3671 modify readme 2023-09-02 21:23:36 +08:00
jianxin 0a6f114f92 add drone build image 2023-09-02 21:17:38 +08:00
3 changed files with 74 additions and 3 deletions

No files matched your search

+71
View File
@@ -0,0 +1,71 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: plugins/docker
privileged: true
settings:
username:
from_secret: registry_username
password:
from_secret: registry_password
tags: 0.0.1
repo: registry.woni.link/woni/wncloud
registry: registry.woni.link
mirror: https://5c492fmo.mirror.aliyuncs.com
dockerfile: ./Dockerfile
# - name: scp
# image: appleboy/drone-scp
# settings:
# host:
# from_secret: ssh_host
# username:
# from_secret: ssh_user
# port: 22
# key:
# from_secret: ssh_key
# tags: 0.1
# target: /home/woni/wncloud
# source: ./docker-compose.yml
# - name: deploy
# image: appleboy/drone-ssh
# settings:
# host:
# from_secret: ssh_host
# username:
# from_secret: ssh_user
# port: 22
# key:
# from_secret: ssh_key
# envs:
# - sshpassword
# script:
# - cd /home/woni/wncloud
# - sudo docker-compose down
# - sudo docker-compose rm
# - sudo docker-compose pull web
# - sudo docker-compose up -d
# - name: dingtalk
# image: lddsb/drone-dingtalk-message
# settings:
# token: d8ccd8ca9fb6de7098c69585372640ae4ae551f4157ab911d15bd2168dfc17d5
# type: markdown
# tips_title: Wndoc_doc Build 通知
# message_color: true
# success_color: 008000
# failure_color: FF0000
# when:
# status: [failure, success]
trigger:
branch:
include:
- mian
- staging
- feature/*
+2 -2
View File
@@ -5,7 +5,7 @@ FROM python:3.10 as requirements-stage
WORKDIR /tmp
#
RUN pip install poetry
RUN pip install poetry -i https://pypi.tuna.tsinghua.edu.cn/simple
#
COPY ./pyproject.toml ./poetry.lock* /tmp/
@@ -23,7 +23,7 @@ WORKDIR /code
COPY --from=requirements-stage /tmp/requirements.txt /code/requirements.txt
#
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
#
COPY ./app /code/app
+1 -1
View File
@@ -12,4 +12,4 @@ docker build
docker rmi wncloud:0.0.1
docker build . -t 0.0.1
docker build . -t wncloud:0.0.1