This commit is contained in:
14
.drone.yml
14
.drone.yml
@@ -3,8 +3,14 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: greeting
|
- name: build
|
||||||
image: alpine
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- echo hello
|
- go build
|
||||||
- echo world
|
|
||||||
|
- name: push
|
||||||
|
image: plugins/go
|
||||||
|
settings:
|
||||||
|
username: ymzfb@readmarathon.com
|
||||||
|
password: 4&f_9DawwYKzT6?i
|
||||||
|
repo: registry.cn-shanghai.aliyuncs.com/readmarathon/hello-project
|
||||||
|
|||||||
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
FROM alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
COPY hello-project .
|
||||||
|
|
||||||
|
ENTRYPOINT ['./hello-project']
|
||||||
Reference in New Issue
Block a user