Skip to content

Commit 52fdf98

Browse files
authored
Merge pull request #203 from covalenthq/develop
Upgrade `bsp-geth` with workflows and dockerfiles to golang 1.22.2
2 parents fd1af89 + c17871a commit 52fdf98

File tree

9 files changed

+47
-28
lines changed

9 files changed

+47
-28
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,12 @@ updates:
1212
target-branch: "develop"
1313
reviewers:
1414
- "noslav"
15-
- "sudeepdino008"
16-
15+
- "rogarcia"
16+
- package-ecosystem: "docker"
17+
directory: "/"
18+
schedule:
19+
interval: "weekly"
20+
target-branch: "develop"
21+
reviewers:
22+
- "noslav"
23+
- "rogarcia"

.github/workflows/build-test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@ jobs:
1313
audit:
1414
runs-on: ubuntu-20.04
1515
steps:
16+
- name: Cancel Previous Runs
17+
uses: styfle/[email protected]
18+
with:
19+
access_token: ${{ secrets.GITHUB_TOKEN }}
1620
- uses: actions/checkout@v2
1721

1822
- name: Set up Go
1923
uses: actions/setup-go@v2
2024
with:
21-
go-version: 1.21.4
25+
go-version: 1.22.2
2226

2327
- name: Checkout code
2428
uses: actions/checkout@v2

.github/workflows/docker-image.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,34 @@ name: docker-image-ci
33
on:
44
push:
55
branches:
6-
- "main"
6+
- "main"
77
pull_request:
8-
branches:
9-
- "main"
10-
- "develop"
8+
branches:
9+
- "main"
10+
- "develop"
1111

1212
jobs:
1313
push-image:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- name: Login to GitHub Container Registry
17-
if: ${{ !env.ACT }}
18-
uses: docker/login-action@v1
19-
with:
20-
registry: ghcr.io
21-
username: ${{ secrets.CR_USER }}
22-
password: ${{ secrets.CR_PAT }}
16+
- name: Cancel Previous Runs
17+
uses: styfle/[email protected]
18+
with:
19+
access_token: ${{ secrets.GITHUB_TOKEN }}
20+
- name: Login to GitHub Container Registry
21+
if: ${{ !env.ACT }}
22+
uses: docker/login-action@v1
23+
with:
24+
registry: ghcr.io
25+
username: ${{ secrets.CR_USER }}
26+
password: ${{ secrets.CR_PAT }}
2327

24-
- uses: actions/checkout@v2
25-
- name: Build & Publish the Docker image
26-
if: ${{ !env.ACT }}
27-
run: |
28-
docker build . --file Dockerfile --tag ghcr.io/covalenthq/bsp-geth:latest
29-
docker push ghcr.io/covalenthq/bsp-geth:latest
28+
- uses: actions/checkout@v2
29+
- name: Build & Publish the Docker image
30+
if: ${{ !env.ACT }}
31+
run: |
32+
docker build . --file Dockerfile --tag ghcr.io/covalenthq/bsp-geth:latest
33+
docker push ghcr.io/covalenthq/bsp-geth:latest
3034
3135
# - name: Start containers
3236
# run: docker-compose -f "docker-compose.yml" up --build --remove-orphans --force-recreate --exit-code-from agent
@@ -39,4 +43,4 @@ jobs:
3943

4044
# - name: Stop containers
4145
# if: always()
42-
# run: docker-compose -f "docker-compose.yml" down
46+
# run: docker-compose -f "docker-compose.yml" down

.github/workflows/gcr-image.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
steps:
16+
- name: Cancel Previous Runs
17+
uses: styfle/[email protected]
18+
with:
19+
access_token: ${{ secrets.GITHUB_TOKEN }}
1620
- name: Login to GCR
1721
uses: docker/login-action@v2
1822
with:

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Go
1616
uses: actions/setup-go@v2
1717
with:
18-
go-version: 1.21.4
18+
go-version: 1.22.2
1919
- name: Run tests
2020
run: go test -short ./...
2121
env:

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v3
2121
- uses: actions/setup-go@v3
22-
- name: Set up Go 1.19
22+
- name: Set up Go 1.22.2
2323
uses: actions/setup-go@v3
2424
with:
25-
go-version: 1.19
25+
go-version: 1.22.2
2626
id: go
2727
- run: go version
2828

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ARG USER=$USER
66

77

88
# Build Geth in a stock Go builder container
9-
FROM golang:1.21-alpine as builder
9+
FROM golang:1.22-alpine as builder
1010

1111
RUN apk add --no-cache gcc musl-dev linux-headers git
1212

@@ -15,7 +15,7 @@ WORKDIR /go-ethereum
1515
RUN go run build/ci.go install -static ./cmd/geth
1616

1717
# Pull Geth into a second stage deploy alpine container
18-
FROM alpine:3.15.7
18+
FROM alpine:3.19
1919

2020
RUN apk add --no-cache ca-certificates
2121

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/ethereum/go-ethereum
22

3-
go 1.20
3+
go 1.22.2
44

55
require (
66
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.2.0

params/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const (
3030
const (
3131
BspVersionMajor = 1 // Major version component of the current release
3232
BspVersionMinor = 8 // Minor version component of the current release
33-
BspVersionPatch = 0 // Patch version component of the current release
33+
BspVersionPatch = 1 // Patch version component of the current release
3434
)
3535

3636
// Version holds the textual version string.

0 commit comments

Comments
 (0)