https://github.com/bob-cd/artifact-local
A reference bob artifact store using local storage
https://github.com/bob-cd/artifact-local
ci-cd golang hacktoberfest
Last synced: 11 months ago
JSON representation
A reference bob artifact store using local storage
- Host: GitHub
- URL: https://github.com/bob-cd/artifact-local
- Owner: bob-cd
- License: mit
- Created: 2019-05-02T09:22:11.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2025-05-02T11:52:57.000Z (about 1 year ago)
- Last Synced: 2025-05-02T12:45:48.155Z (about 1 year ago)
- Topics: ci-cd, golang, hacktoberfest
- Language: Go
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 9
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Reference Bob Artifact Store
This is a simple artifact store enabling Bob to store build artifacts.
#### Requirements
- [Go](https://golang.org/dl/) 1.22+
#### Running
- `go build main.go` to compile the code and obtain a binary `main`.
- `./main` will start on port `8001` by default, set the env var `PORT` to change.
#### API
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 an `Ack`.