parent
9e5601f979
commit
0e85cae03d
12
.drone.yml
12
.drone.yml
|
@ -1,15 +1,17 @@
|
|||
pipeline:
|
||||
build:
|
||||
image: golang
|
||||
commands:
|
||||
- go get p83.nl/go/ekster/...
|
||||
- go build p83.nl/go/ekster/cmd/eksterd
|
||||
# build:
|
||||
# image: golang
|
||||
# commands:
|
||||
# - go get p83.nl/go/ekster/...
|
||||
# - go build p83.nl/go/ekster/cmd/eksterd
|
||||
|
||||
publish:
|
||||
image: plugins/docker
|
||||
repo: registry.stuifzandapp.com/microsub-server
|
||||
registry: registry.stuifzandapp.com
|
||||
secrets: [ docker_username, docker_password ]
|
||||
settings:
|
||||
dockerfile: ./Dockerfile.alpine
|
||||
|
||||
deploy:
|
||||
image: appleboy/drone-ssh
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
package microsub
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestJson(t *testing.T) {
|
||||
item := Item{Type: "entry"}
|
||||
result, err := json.Marshal(item)
|
||||
fmt.Println(string(result), err)
|
||||
}
|
Loading…
Reference in New Issue
Block a user