Skip to content

Commit 6564750

Browse files
committed
Use private cometbft fork to internal testing
1 parent 5bf596c commit 6564750

File tree

6 files changed

+32
-6
lines changed

6 files changed

+32
-6
lines changed

.github/workflows/pipeline.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ jobs:
8181
with:
8282
submodules: recursive
8383

84+
- name: Configure private repo access
85+
run: |
86+
git config --global url."https://${{ secrets.PRIVATE_REPO_TOKEN }}@github.com/berachain/cometbft-internal".insteadOf "https://github.com/berachain/cometbft-internal"
87+
8488
- name: Install Foundry
8589
uses: foundry-rs/foundry-toolchain@v1
8690
with:
@@ -138,6 +142,11 @@ jobs:
138142
uses: actions/checkout@v3
139143
with:
140144
submodules: recursive
145+
146+
- name: Configure private repo access
147+
run: |
148+
git config --global url."https://${{ secrets.PRIVATE_REPO_TOKEN }}@github.com/berachain/cometbft-internal".insteadOf "https://github.com/berachain/cometbft-internal"
149+
141150
- name: Check if Docker Hub credentials exist
142151
id: check-docker-credentials
143152
run: |
@@ -179,6 +188,7 @@ jobs:
179188
make ${{ matrix.args }}
180189
env:
181190
GOPATH: /home/runner/go
191+
GITHUB_TOKEN: ${{ secrets.PRIVATE_REPO_TOKEN }}
182192

183193
# -------------------------------------------------------------------------- #
184194
# Docker Container Build and Push #
@@ -196,6 +206,10 @@ jobs:
196206
- name: Checkout repository
197207
uses: actions/checkout@v3
198208

209+
- name: Configure private repo access
210+
run: |
211+
git config --global url."https://${{ secrets.PRIVATE_REPO_TOKEN }}@github.com/berachain/cometbft-internal".insteadOf "https://github.com/berachain/cometbft-internal"
212+
199213
- name: Echo GitHub Context Variables
200214
env:
201215
GITHUB_ACTOR: ${{ github.actor }}
@@ -236,6 +250,8 @@ jobs:
236250
- name: Build Docker image
237251
run: |
238252
make build-docker
253+
env:
254+
GITHUB_TOKEN: ${{ secrets.PRIVATE_REPO_TOKEN }}
239255

240256
- if: ${{ env.PUSH_DOCKER_IMAGE == 'true' }}
241257
name: Authenticate to GitHub Container Registry

.github/workflows/release.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ jobs:
7070
runs-on: ${{ matrix.configs.runs-on }}
7171
steps:
7272
- uses: actions/checkout@v3
73+
74+
- name: Configure private repo access
75+
run: |
76+
git config --global url."https://${{ secrets.PRIVATE_REPO_TOKEN }}@github.com/berachain/cometbft-internal".insteadOf "https://github.com/berachain/cometbft-internal"
77+
7378
- uses: actions/setup-go@v3
7479
with:
7580
go-version: "1.25.5"

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ RUN apk add --no-cache git
4040
COPY ./go.mod ./go.sum ./
4141
RUN --mount=type=cache,target=/root/.cache/go-build \
4242
--mount=type=cache,target=/root/go/pkg/mod \
43+
--mount=type=secret,id=github_token \
44+
if [ -f /run/secrets/github_token ]; then \
45+
git config --global url."https://$(cat /run/secrets/github_token)@github.com/berachain/cometbft-internal".insteadOf "https://github.com/berachain/cometbft-internal"; \
46+
fi && \
4347
go mod download
4448

4549
#######################################################

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module github.com/berachain/beacon-kit
33
go 1.25.5
44

55
replace (
6-
github.com/cometbft/cometbft => github.com/berachain/cometbft v1.0.1-0.20251015081901-8394c619874a
7-
github.com/cometbft/cometbft/api => github.com/berachain/cometbft/api v1.0.1-0.20251015081901-8394c619874a
6+
github.com/cometbft/cometbft => github.com/berachain/cometbft-internal v0.0.0-20251208143618-b1de2632679c
7+
github.com/cometbft/cometbft/api => github.com/berachain/cometbft-internal/api v0.0.0-20251208143618-b1de2632679c
88
github.com/cosmos/cosmos-sdk => github.com/cosmos/cosmos-sdk v0.52.0-rc.1
99
github.com/ethereum/go-ethereum => github.com/berachain/bera-geth v1.16.3-0.20251030205931-33cdc637de2d
1010
github.com/karalabe/ssz => github.com/berachain/karalabe-ssz v0.3.0-alpha.0

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
7878
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
7979
github.com/berachain/bera-geth v1.16.3-0.20251030205931-33cdc637de2d h1:ikO+o1WPTO5MHmjmI9m34JjI7pahkScjuOzlJaesJV0=
8080
github.com/berachain/bera-geth v1.16.3-0.20251030205931-33cdc637de2d/go.mod h1:U8+OCIcIGEScedKpVU89CNwFJWdyDLD/TWolw/Gcj18=
81-
github.com/berachain/cometbft v1.0.1-0.20251015081901-8394c619874a h1:+SbQdFLflXw5Bpg0uPci2Mv37OyFWggx9nKTEumBuAU=
82-
github.com/berachain/cometbft v1.0.1-0.20251015081901-8394c619874a/go.mod h1:AB3j5W0TQmQSuwRdzWvIBQPAKquFo7VnckwETlAsuwk=
83-
github.com/berachain/cometbft/api v1.0.1-0.20251015081901-8394c619874a h1:LZt0HFTZ8Jv2GF2tQiMQWSZD73ciBbWpfLyU9LBlnLc=
84-
github.com/berachain/cometbft/api v1.0.1-0.20251015081901-8394c619874a/go.mod h1:QaK8NCB4rHDs0MdS+L+QOQsL4UM3YJ9OMCNrH+CGdA0=
81+
github.com/berachain/cometbft-internal v0.0.0-20251208143618-b1de2632679c h1:8Vqqo3d+trnfY9Mgq2nHYbRNH7Hd/lBdNwtT8jxIo0U=
82+
github.com/berachain/cometbft-internal v0.0.0-20251208143618-b1de2632679c/go.mod h1:AB3j5W0TQmQSuwRdzWvIBQPAKquFo7VnckwETlAsuwk=
83+
github.com/berachain/cometbft-internal/api v0.0.0-20251208143618-b1de2632679c h1:YHKk7z6lZ0SgxgPlIVvZ9IuzIuGWk1sZ84zZ3jCetOM=
84+
github.com/berachain/cometbft-internal/api v0.0.0-20251208143618-b1de2632679c/go.mod h1:QaK8NCB4rHDs0MdS+L+QOQsL4UM3YJ9OMCNrH+CGdA0=
8585
github.com/berachain/karalabe-ssz v0.3.0-alpha.0 h1:SVMU5PSuMB2fgmFTf1rSBY9rEHpQv24DJcqxSrD7jf8=
8686
github.com/berachain/karalabe-ssz v0.3.0-alpha.0/go.mod h1:7BZG/jckt43eKw7sl/AF6gTcL0oxgFPme39m54v8rDI=
8787
github.com/bgentry/speakeasy v0.2.0 h1:tgObeVOf8WAvtuAX6DhJ4xks4CFNwPDZiqzGqIHE51E=

scripts/build/build.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ build-docker: ## build a docker image containing `beacond`
109109
--build-arg GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
110110
--build-arg GOOS=linux \
111111
--build-arg GOARCH=$(ARCH) \
112+
$(if $(GITHUB_TOKEN),--secret id=github_token$(comma)env=GITHUB_TOKEN) \
112113
-f ${DOCKERFILE} \
113114
-t $(IMAGE_NAME):$(VERSION) \
114115
.

0 commit comments

Comments
 (0)