From a43bde7ce71e6f175dcaf79f9e5cfa41a4ad7e61 Mon Sep 17 00:00:00 2001 From: hsc Date: Sun, 30 Mar 2025 17:36:08 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=B7=BB=E5=8A=A0=20Drone=20CI=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=92=8C=E7=AE=80=E5=8D=95=20Go=20=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F-=20=E6=96=B0=E5=A2=9E=20.drone.yml=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E9=85=8D=E7=BD=AE=20Docker=20=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=20CI=E7=AE=A1=E9=81=93=20-=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20hello.go=20=E6=96=87=E4=BB=B6=EF=BC=8C=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E7=AE=80=E5=8D=95=E7=9A=84=20Go=20=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=20Hello=20World=20=E7=A8=8B=E5=BA=8F=20-=E9=85=8D=E7=BD=AE=20C?= =?UTF-8?q?I=20=E7=8E=AF=E5=A2=83=E4=B8=AD=E4=BD=BF=E7=94=A8=20Golang=201.?= =?UTF-8?q?20=20=E9=95=9C=E5=83=8F=E8=BF=9B=E8=A1=8C=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=92=8C=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 10 ++++++++++ hello.go | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 .drone.yml create mode 100644 hello.go diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..a72dcf8 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,10 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: build + image: golang:1.20 + commands: + - go build + - go test \ No newline at end of file diff --git a/hello.go b/hello.go new file mode 100644 index 0000000..8ac7076 --- /dev/null +++ b/hello.go @@ -0,0 +1,3 @@ +func main() { + fmt.Println("Hello, World!") +} \ No newline at end of file