This is a simple artifact store enabling Bob to store build artifacts.
- Go 1.22+
go build main.go
to compile the code and obtain a binarymain
../main
will start on port8001
by default, set the env varPORT
to change.
Here {path}
represents {pipeline-group}/{pipeline-name}/{run-id}/{artifact-name}
.
GET /bob_artifact/{path}
: Returns the artifact at the path if exists.POST /bob_artifact/{path}
: Takes the file contents as the post body. Writes the file at the path.DELETE /bob_artifact/{path}
: Deletes the file at the path.GET /ping
: Responds with anAck
.