From f3e8c3d1f795bd85f9cb1fae24aa2ff3d2c4a662 Mon Sep 17 00:00:00 2001 From: lzwang Date: Sat, 3 Sep 2022 00:26:55 +0800 Subject: [PATCH] test-ci --- .drone.yml | 10 +++++++--- Dockerfile | 5 ----- 2 files changed, 7 insertions(+), 8 deletions(-) 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