File tree Expand file tree Collapse file tree 3 files changed +47
-2
lines changed Expand file tree Collapse file tree 3 files changed +47
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Bor Docker Image CI 
2+ 
3+ on :
4+   push :
5+     branches-ignore :
6+       - ' **' 
7+     tags :
8+       - ' v*.*.*' 
9+       #  to be used by fork patch-releases ^^
10+       - ' v*.*.*-*' 
11+   
12+ jobs :
13+   build :
14+     runs-on : ubuntu-latest 
15+     steps :
16+     - uses : actions/checkout@v2 
17+     - name : Build the Bor Docker image 
18+       env :
19+         DOCKERHUB : ${{ secrets.DOCKERHUB }} 
20+         DOCKERHUB_KEY : ${{ secrets.DOCKERHUB_KEY }} 
21+       run : | 
22+         ls -l 
23+         echo "Docker login" 
24+         docker login -u $DOCKERHUB -p $DOCKERHUB_KEY 
25+         echo "running build" 
26+         docker build -f Dockerfile.classic -t maticnetwork/bor:${GITHUB_REF/refs\/tags\//} . 
27+         echo "pushing image" 
28+         docker push maticnetwork/bor:${GITHUB_REF/refs\/tags\//} 
29+         echo "DONE!" 
Original file line number Diff line number Diff line change @@ -95,7 +95,6 @@ dockers:
9595      - linux-amd64 
9696    build_flag_templates :
9797      - --platform=linux/amd64 
98-     skip_push : true 
9998
10099  - image_templates :
101100      - 0xpolygon/{{ .ProjectName }}:{{ .Version }}-arm64 
@@ -106,7 +105,6 @@ dockers:
106105      - linux-arm64 
107106    build_flag_templates :
108107      - --platform=linux/arm64 
109-     skip_push : true 
110108
111109docker_manifests :
112110  - name_template : 0xpolygon/{{ .ProjectName }}:{{ .Version }} 
Original file line number Diff line number Diff line change 1+ # Build Geth in a stock Go builder container
2+ FROM golang:1.17-alpine as builder
3+ 
4+ RUN apk add --no-cache make gcc musl-dev linux-headers git bash
5+ 
6+ ADD . /bor
7+ RUN cd /bor && make bor-all
8+ 
9+ CMD ["/bin/bash"]
10+ 
11+ # Pull Bor into a second stage deploy alpine container
12+ FROM alpine:latest
13+ 
14+ RUN apk add --no-cache ca-certificates
15+ COPY --from=builder /bor/build/bin/bor /usr/local/bin/
16+ COPY --from=builder /bor/build/bin/bootnode /usr/local/bin/
17+ 
18+ EXPOSE 8545 8546 8547 30303 30303/udp
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments