Build proper URL
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 1m53s

This commit is contained in:
Alexandre Bruyant 2024-01-06 19:58:18 +01:00
parent d2824ce7e4
commit 41cc0cb790

View File

@ -59,8 +59,8 @@ func main() {
body, writer := io.Pipe()
// TODO: URL
req, err := http.NewRequest(http.MethodPost, "ipfs.narwhal-frog.ts.net", body)
url := fmt.Sprintf("http://%v:%v/api/v0/add", ipfsHost, ipfsPort)
req, err := http.NewRequest(http.MethodPost, url, body)
if err != nil {
githubactions.Fatalf("Unable to create request: %v", err.Error())
}