File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 42
42
with :
43
43
username : ${{ secrets.DOCKERHUB_USERNAME }}
44
44
password : ${{ secrets.DOCKERHUB_TOKEN }}
45
- - name : Build and push
45
+ - name : Build and push production RPC image
46
46
uses : docker/build-push-action@v5
47
47
with :
48
48
file : src/templates/rpc/Dockerfile_rpc
53
53
labels : ${{ steps.meta.outputs.labels }}
54
54
cache-from : type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_RPC_REPO }}:latest
55
55
cache-to : type=inline
56
+ - name : Build and push dev RPC image
57
+ if : github.ref == 'refs/heads/main'
58
+ uses : docker/build-push-action@v5
59
+ with :
60
+ file : src/templates/rpc/Dockerfile_rpc_dev
61
+ platforms : linux/amd64,linux/arm64
62
+ context : .
63
+ push : true
64
+ tags : dev
65
+ labels : ${{ steps.meta.outputs.labels }}
66
+ cache-from : type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_RPC_REPO }}:dev
67
+ cache-to : type=inline
56
68
- name : Create tag name file
57
69
run : echo "${{ steps.meta.outputs.tags }}" > tagname.txt
58
70
- name : Upload tag name as artifact
Original file line number Diff line number Diff line change 17
17
containers :
18
18
- name : warnet-rpc
19
19
imagePullPolicy : Always
20
- image : bitcoindevproject/warnet-rpc:dev-3
20
+ image : bitcoindevproject/warnet-rpc:dev
21
21
ports :
22
22
- containerPort : 9276
23
23
volumeMounts :
You can’t perform that action at this time.
0 commit comments