Skip to content

Commit f80dc2b

Browse files
authored
Build with the previous Dockerfile (ethereum#268)
* Build with the previous Dockerfile This will recover the classic maticnetwork build in parallel. This will allow to test both images. Also fix the new build manifest. Build on patches too
1 parent 533e989 commit f80dc2b

File tree

3 files changed

+47
-2
lines changed

3 files changed

+47
-2
lines changed

.github/workflows/dockerimage.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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!"

.goreleaser.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

111109
docker_manifests:
112110
- name_template: 0xpolygon/{{ .ProjectName }}:{{ .Version }}

Dockerfile.classic

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

0 commit comments

Comments
 (0)