Skip to content

Commit

Permalink
feat: implement chains.yaml split and embed data into binary (#286)
Browse files Browse the repository at this point in the history
* split chains.yaml into individual chains

* embed chains data

* modify build.go to use chains.yaml

* fix dead link

* empty chains.yaml to prevent github Lint error

* remove onex since its decommissioned

* Do not use : character in comments

* add newline at end of each file

* remove rouge script

* Use chains/*.yaml search as default and only use chains.yaml as a fallback

* Adding install to makefile

* Update Readme file with Make file information

* Adding redirection comment

* Add goreleaser yaml

* use right org

* only use before

* goreleaser version

* write chains.yaml

* Update .goreleaser.yaml

---------

Co-authored-by: Andrew Gouin <[email protected]>
  • Loading branch information
vimystic and agouin authored Oct 8, 2024
1 parent f401f0c commit 2c43b3b
Show file tree
Hide file tree
Showing 111 changed files with 1,244 additions and 1,399 deletions.
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

0 comments on commit 2c43b3b

Please sign in to comment.