parent
9e5601f979
commit
0e85cae03d
12
.drone.yml
12
.drone.yml
|
|
@ -1,15 +1,17 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
# build:
|
||||||
image: golang
|
# image: golang
|
||||||
commands:
|
# commands:
|
||||||
- go get p83.nl/go/ekster/...
|
# - go get p83.nl/go/ekster/...
|
||||||
- go build p83.nl/go/ekster/cmd/eksterd
|
# - go build p83.nl/go/ekster/cmd/eksterd
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
repo: registry.stuifzandapp.com/microsub-server
|
repo: registry.stuifzandapp.com/microsub-server
|
||||||
registry: registry.stuifzandapp.com
|
registry: registry.stuifzandapp.com
|
||||||
secrets: [ docker_username, docker_password ]
|
secrets: [ docker_username, docker_password ]
|
||||||
|
settings:
|
||||||
|
dockerfile: ./Dockerfile.alpine
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: appleboy/drone-ssh
|
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