diff --git a/.drone.yml b/.drone.yml index b946155..68825da 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,10 +1,9 @@ -workspace: - base: /go - path: src/gogs.kikakika.com/lihongfeng/first +kind: pipeline +name: default -pipeline: - build: - image: golang:1.10.2 - commands: - - go test - - go build +steps: +- name: test + image: golang + commands: + - go test + - go build \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3717f19 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM cake233/go-alpine-arm64 + +WORKDIR "/app" + +COPY main.go "/app/." + +# ENTRYPOINT ["go run main.go"] \ No newline at end of file diff --git a/app b/app new file mode 100755 index 0000000..74760dc Binary files /dev/null and b/app differ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..20a1383 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,5 @@ +version: '3' +services: + server: + image: coc:0.1 + container_name: coc diff --git a/main.go b/main.go index a83e54f..fd43625 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,7 @@ import ( ) func main() { - fmt.Printf("hello world") + fmt.Println("hello world") } func hello() string {