Skip to content

Commit 5fd0e16

Browse files
committed
chore: add docker gh workflow for pushing hyperlane-init image
1 parent 19ec3cc commit 5fd0e16

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.github/workflows/docker.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build and Push Docker Image
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- '**/Dockerfile'
8+
- '.github/workflows/docker.yml'
9+
10+
jobs:
11+
build-and-push:
12+
runs-on: ubuntu-latest
13+
14+
permissions:
15+
contents: read
16+
packages: write # Required for pushing to GHCR
17+
18+
steps:
19+
- name: Checkout source
20+
uses: actions/checkout@v3
21+
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v3
24+
25+
- name: Log in to GitHub Container Registry
26+
uses: docker/login-action@v3
27+
with:
28+
registry: ghcr.io
29+
username: ${{ github.actor }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Build and push Docker image
33+
uses: docker/build-push-action@v5
34+
with:
35+
context: .
36+
file: ./hyperlane/Dockerfile
37+
push: true
38+
tags: ghcr.io/${{ github.repository_owner }}/hyperlane-init:latest

hyperlane/registry/chains/rethlocal/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ nativeToken:
1010
symbol: ETH
1111
protocol: ethereum
1212
rpcUrls:
13-
- http: http://localhost:8545
13+
- http: http://reth:8545
1414
technicalStack: other

0 commit comments

Comments
 (0)