Fix IP address print
Fix docker repo Fix local build tasks
This commit is contained in:
		@@ -14,7 +14,7 @@ pipeline:
 | 
			
		||||
      - go build
 | 
			
		||||
  publish:
 | 
			
		||||
    image: plugins/docker
 | 
			
		||||
    repo: deadbeef.codes:5000/mandelmap
 | 
			
		||||
    repo: deadbeef.codes:5000/mandelmapper
 | 
			
		||||
    registry: deadbeef.codes:5000
 | 
			
		||||
    auto_tag: true
 | 
			
		||||
    auto_tag_suffix: ${DRONE_COMMIT}
 | 
			
		||||
							
								
								
									
										9
									
								
								.vscode/tasks.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.vscode/tasks.json
									
									
									
									
										vendored
									
									
								
							@@ -6,7 +6,7 @@
 | 
			
		||||
        {
 | 
			
		||||
            "label": "Local Build",
 | 
			
		||||
            "type": "shell",
 | 
			
		||||
            "command": "cd mandelmapper ; go build",
 | 
			
		||||
            "command": "go build ; ./mandelmapper",
 | 
			
		||||
            "group": {
 | 
			
		||||
                "kind": "build",
 | 
			
		||||
                "isDefault": true
 | 
			
		||||
@@ -15,12 +15,7 @@
 | 
			
		||||
        {
 | 
			
		||||
            "label": "Raspberry Pi 3 Build",
 | 
			
		||||
            "type": "shell",
 | 
			
		||||
            "command": "cd mandelmapper ; export GOOS=linux ; export GOARCH=arm ; export GOARM=7 ; go build",
 | 
			
		||||
            "group": {
 | 
			
		||||
                "kind": "build",
 | 
			
		||||
                "isDefault": true
 | 
			
		||||
            },
 | 
			
		||||
            "problemMatcher": []
 | 
			
		||||
            "command": "export GOOS=linux ; export GOARCH=arm ; export GOARM=7 ; go build"
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
@@ -122,7 +122,7 @@ func renderTile(w http.ResponseWriter, r *http.Request) {
 | 
			
		||||
 | 
			
		||||
	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]))
 | 
			
		||||
	w.Header().Set("Content-Type", "image/png")
 | 
			
		||||
	png.Encode(w, img)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user