Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement chains.yaml split and embed data into binary #286

Merged
merged 19 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
version: 1
before:
hooks:
- bash -c 'cat chains/*.yaml > chains.yaml'
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
build:
cat chains/*.yaml > chains.yaml
go build
rm -f chains.yaml
install:
cat chains/*.yaml > chains.yaml
go install
rm -f chains.yaml
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,19 @@ If you would like to build the images yourself, heighliner is a CLI tool to help
Download the latest [release](https://github.com/strangelove-ventures/heighliner/releases), or build it yourself with:

```shell
go build
make build
```

## Build and put binary in path.

If you would like to build an image and put it in your local path , you can do the following.

```shell
make install
```



#### Example: build the docker image for gaia v6.0.0:

```shell
Expand Down Expand Up @@ -115,7 +125,7 @@ export GH_USER=github_username GH_PAT=github_personal_access_token
heighliner build -r ghcr.io/strangelove-ventures/heighliner -n 3
```

heighliner will fetch the last 3 release tags from github for all chains in [chains.yaml](chains/01_chains.yaml), build docker images, and push them.
heighliner will fetch the last 3 release tags from github for all chains in [chains](chains), build docker images, and push them.



Expand Down
1 change: 1 addition & 0 deletions chains.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This is a stub file. Please add new chains to the chains/ directory
Loading
Loading