Fix IP address print

Fix docker repo
Fix local build tasks
This commit is contained in:
Steven Polley 2018-08-01 22:34:29 -06:00
parent 51a36bd5b4
commit 3cf557ebe7
3 changed files with 4 additions and 9 deletions

View File

@ -14,7 +14,7 @@ pipeline:
- go build - go build
publish: publish:
image: plugins/docker image: plugins/docker
repo: deadbeef.codes:5000/mandelmap repo: deadbeef.codes:5000/mandelmapper
registry: deadbeef.codes:5000 registry: deadbeef.codes:5000
auto_tag: true auto_tag: true
auto_tag_suffix: ${DRONE_COMMIT} auto_tag_suffix: ${DRONE_COMMIT}

9
.vscode/tasks.json vendored
View File

@ -6,7 +6,7 @@
{ {
"label": "Local Build", "label": "Local Build",
"type": "shell", "type": "shell",
"command": "cd mandelmapper ; go build", "command": "go build ; ./mandelmapper",
"group": { "group": {
"kind": "build", "kind": "build",
"isDefault": true "isDefault": true
@ -15,12 +15,7 @@
{ {
"label": "Raspberry Pi 3 Build", "label": "Raspberry Pi 3 Build",
"type": "shell", "type": "shell",
"command": "cd mandelmapper ; export GOOS=linux ; export GOARCH=arm ; export GOARM=7 ; go build", "command": "export GOOS=linux ; export GOARCH=arm ; export GOARM=7 ; go build"
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
} }
] ]
} }

View File

@ -122,7 +122,7 @@ func renderTile(w http.ResponseWriter, r *http.Request) {
ip := GetOutboundIP() ip := GetOutboundIP()
addLabel(img, 20, 30, fmt.Sprintf("%s", string(ip))) addLabel(img, 20, 30, fmt.Sprintf("%s", ip.String()))
//addLabel(img, 20, 30, fmt.Sprintf("%s/%s/%s.png", components[1], components[2], components[3])) //addLabel(img, 20, 30, fmt.Sprintf("%s/%s/%s.png", components[1], components[2], components[3]))
w.Header().Set("Content-Type", "image/png") w.Header().Set("Content-Type", "image/png")
png.Encode(w, img) png.Encode(w, img)