This commit is contained in:
14
.drone.yml
14
.drone.yml
@@ -3,8 +3,14 @@ type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: greeting
|
||||
image: alpine
|
||||
- name: build
|
||||
image: golang
|
||||
commands:
|
||||
- echo hello
|
||||
- echo world
|
||||
- go build
|
||||
|
||||
- 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