Skip to content

Commit 180835b

Browse files
committed
fix docker images
1 parent 5014edf commit 180835b

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

.github/workflows/build-publish-eth-rpc.yml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
env:
15-
IMAGE_NAME: "docker.io/paritypr/eth-rpc"
15+
ETH_RPC_IMAGE_NAME: "docker.io/paritypr/eth-rpc"
16+
ETH_INDEXER_IMAGE_NAME: "docker.io/paritypr/eth-indexer"
1617

1718
jobs:
1819
set-variables:
@@ -34,7 +35,7 @@ jobs:
3435
echo "set VERSION=${VERSION}"
3536
3637
build_docker:
37-
name: Build docker image
38+
name: Build docker images
3839
runs-on: parity-large
3940
needs: [set-variables]
4041
env:
@@ -43,17 +44,26 @@ jobs:
4344
- name: Check out the repo
4445
uses: actions/checkout@v4
4546

46-
- name: Build Docker image
47+
- name: Build eth-rpc Docker image
4748
uses: docker/build-push-action@v6
4849
with:
4950
context: .
50-
file: ./substrate/frame/revive/rpc/Dockerfile
51+
file: ./substrate/frame/revive/rpc/dockerfiles/eth-rpc/Dockerfile
5152
push: false
5253
tags: |
53-
${{ env.IMAGE_NAME }}:${{ env.VERSION }}
54+
${{ env.ETH_RPC_IMAGE_NAME }}:${{ env.VERSION }}
55+
56+
- name: Build eth-indexer Docker image
57+
uses: docker/build-push-action@v6
58+
with:
59+
context: .
60+
file: ./substrate/frame/revive/rpc/dockerfiles/eth-indexer/Dockerfile
61+
push: false
62+
tags: |
63+
${{ env.ETH_INDEXER_IMAGE_NAME }}:${{ env.VERSION }}
5464
5565
build_push_docker:
56-
name: Build and push docker image
66+
name: Build and push docker images
5767
runs-on: parity-large
5868
if: github.ref == 'refs/heads/master'
5969
needs: [set-variables]
@@ -69,11 +79,20 @@ jobs:
6979
username: ${{ secrets.PARITYPR_DOCKERHUB_USERNAME }}
7080
password: ${{ secrets.PARITYPR_DOCKERHUB_PASSWORD }}
7181

72-
- name: Build Docker image
82+
- name: Build eth-rpc Docker image
83+
uses: docker/build-push-action@v6
84+
with:
85+
context: .
86+
file: ./substrate/frame/revive/rpc/dockerfiles/eth-rpc/Dockerfile
87+
push: true
88+
tags: |
89+
${{ env.ETH_RPC_IMAGE_NAME }}:${{ env.VERSION }}
90+
91+
- name: Build eth-indexer Docker image
7392
uses: docker/build-push-action@v6
7493
with:
7594
context: .
76-
file: ./substrate/frame/revive/rpc/Dockerfile
95+
file: ./substrate/frame/revive/rpc/dockerfiles/eth-indexer/Dockerfile
7796
push: true
7897
tags: |
79-
${{ env.IMAGE_NAME }}:${{ env.VERSION }}
98+
${{ env.ETH_INDEXER_IMAGE_NAME }}:${{ env.VERSION }}

0 commit comments

Comments
 (0)