File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : build-docker-rpc-images
2
+
3
+ on :
4
+ pull_request_target :
5
+ push :
6
+ branches :
7
+ - main
8
+
9
+ jobs :
10
+ deployment :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Set up Docker Buildx
14
+ uses : docker/setup-buildx-action@v3
15
+ - name : Docker meta
16
+ id : meta
17
+ uses : docker/metadata-action@v5
18
+ with :
19
+ images : ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_RPC_REPO }}
20
+ tags : |
21
+ type=ref,event=tag
22
+ type=ref,event=pr
23
+ type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
24
+ labels : |
25
+ maintainer=bitcoindevproject
26
+ org.opencontainers.image.title=warnet-rpc
27
+ org.opencontainers.image.description=Warnet RPC server
28
+ - name : Login to Docker Hub
29
+ uses : docker/login-action@v3
30
+ with :
31
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
32
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
33
+ - name : Build and push
34
+ uses : docker/build-push-action@v5
35
+ with :
36
+ file : src/templates/rpc/Dockerfile_rpc
37
+ platforms : linux/amd64,linux/arm64
38
+ push : true
39
+ tags : ${{ steps.meta.outputs.tags }}
40
+ labels : ${{ steps.meta.outputs.labels }}
41
+ cache-from : type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_RPC_REPO }}:latest
42
+ cache-to : type=inline
You can’t perform that action at this time.
0 commit comments