From d021217ef50eda9cf131789c910baf8e22580051 Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Tue, 22 Sep 2020 15:38:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=9E=84=E5=BB=BA=E9=95=9C=E5=83=8F):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9E=84=E5=BB=BA=E9=95=9C=E5=83=8F=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 15 +++++++++++++++ Dockerfile | 10 ++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..c02f051 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,15 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: docker + pull: if-not-exists + image: plugins/docker + settings: + repo: xiaoqidun/goenv + username: + from_secret: docker_username + password: + from_secret: docker_password + dockerfile: Dockerfile \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..63cd902 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +# 基础镜像 +FROM golang:buster + +# 作者信息 +LABEL MAINTAINER="xiaoqidun@gmail.com" + +# 安装工具 +RUN apt-get update \ + && apt-get install -y \ + unzip