File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 4242 with :
4343 username : ${{ secrets.DOCKERHUB_USERNAME }}
4444 password : ${{ secrets.DOCKERHUB_TOKEN }}
45- - name : Build and push
45+ - name : Build and push production RPC image
4646 uses : docker/build-push-action@v5
4747 with :
4848 file : src/templates/rpc/Dockerfile_rpc
5353 labels : ${{ steps.meta.outputs.labels }}
5454 cache-from : type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_RPC_REPO }}:latest
5555 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
5668 - name : Create tag name file
5769 run : echo "${{ steps.meta.outputs.tags }}" > tagname.txt
5870 - name : Upload tag name as artifact
Original file line number Diff line number Diff line change 1717 containers :
1818 - name : warnet-rpc
1919 imagePullPolicy : Always
20- image : bitcoindevproject/warnet-rpc:dev-3
20+ image : bitcoindevproject/warnet-rpc:dev
2121 ports :
2222 - containerPort : 9276
2323 volumeMounts :
You can’t perform that action at this time.
0 commit comments