diff --git a/.drone.yml b/.drone.yml index 35fa557..885e39d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,9 +11,13 @@ steps: # 定义管道的执行步骤 - hostname - echo "********************" -# - name: "测试Python用例" -# image: python:3.10 - + - name: "测试Python用例" + image: "lzwang/python3.10:tsinghua" + commands: + - pip -V + - python -V + - date + - name: "测试微信推送" # https://plugins.drone.io/plugins/wechat-2 diff --git a/Dockerfile b/Dockerfile index 4d55334..ce7b5a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,11 +27,6 @@ RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib && echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free" >> /etc/apt/sources.list \ && echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free" >> /etc/apt/sources.list -# update apt packages -RUN apt-get update -y && apt-get upgrade -y \ - && apt-get install apt-utils -y \ - && rm -rf /var/lib/apt/lists/* - # setup alias RUN echo "alias ll='ls -la'" >> /root/.bashrc