@@ -12,7 +12,8 @@ concurrency:
12
12
cancel-in-progress : true
13
13
14
14
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"
16
17
17
18
jobs :
18
19
set-variables :
34
35
echo "set VERSION=${VERSION}"
35
36
36
37
build_docker :
37
- name : Build docker image
38
+ name : Build docker images
38
39
runs-on : parity-large
39
40
needs : [set-variables]
40
41
env :
@@ -43,17 +44,26 @@ jobs:
43
44
- name : Check out the repo
44
45
uses : actions/checkout@v4
45
46
46
- - name : Build Docker image
47
+ - name : Build eth-rpc Docker image
47
48
uses : docker/build-push-action@v6
48
49
with :
49
50
context : .
50
- file : ./substrate/frame/revive/rpc/Dockerfile
51
+ file : ./substrate/frame/revive/rpc/dockerfiles/eth-rpc/ Dockerfile
51
52
push : false
52
53
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 }}
54
64
55
65
build_push_docker :
56
- name : Build and push docker image
66
+ name : Build and push docker images
57
67
runs-on : parity-large
58
68
if : github.ref == 'refs/heads/master'
59
69
needs : [set-variables]
@@ -69,11 +79,20 @@ jobs:
69
79
username : ${{ secrets.PARITYPR_DOCKERHUB_USERNAME }}
70
80
password : ${{ secrets.PARITYPR_DOCKERHUB_PASSWORD }}
71
81
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
73
92
uses : docker/build-push-action@v6
74
93
with :
75
94
context : .
76
- file : ./substrate/frame/revive/rpc/Dockerfile
95
+ file : ./substrate/frame/revive/rpc/dockerfiles/eth-indexer/ Dockerfile
77
96
push : true
78
97
tags : |
79
- ${{ env.IMAGE_NAME }}:${{ env.VERSION }}
98
+ ${{ env.ETH_INDEXER_IMAGE_NAME }}:${{ env.VERSION }}
0 commit comments