Skip to content

Commit 655ea1f

Browse files
authored
build docker image and publish it to Docker Hub on release (#67)
* build docker image and publish it to Docker Hub on release * bump version
1 parent 5886ea5 commit 655ea1f

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.github/workflows/on-master.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v2
1919
- name: Run docker build
20-
run: docker build -t vulcanize/go-ethereum -f Dockerfile.amd64 .
20+
run: docker build -t vulcanize/go-ethereum -f Dockerfile .
2121
- name: Get the version
2222
id: vars
2323
run: echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7})

.github/workflows/build.yml renamed to .github/workflows/on-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v2
1111
- name: Run docker build
12-
run: docker build -t vulcanize/go-ethereum -f Dockerfile.amd64 .
12+
run: docker build -t vulcanize/go-ethereum .

.github/workflows/publish.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,19 @@ jobs:
1111
id: vars
1212
run: |
1313
echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7})
14+
echo ::set-output name=tag::$(echo ${GITHUB_REF#refs/tags/})
1415
- name: Docker Login to Github Registry
1516
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login https://docker.pkg.github.com -u vulcanize --password-stdin
1617
- name: Docker Pull
1718
run: docker pull docker.pkg.github.com/vulcanize/go-ethereum/go-ethereum:${{steps.vars.outputs.sha}}
1819
- name: Copy ethereum binary file
19-
run: docker run --rm --entrypoint cat docker.pkg.github.com/vulcanize/go-ethereum/go-ethereum:${{steps.vars.outputs.sha}} /go-ethereum/build/bin/geth > geth-linux-amd64
20+
run: docker run --rm --entrypoint cat docker.pkg.github.com/vulcanize/go-ethereum/go-ethereum:${{steps.vars.outputs.sha}} /usr/local/bin/geth > geth-linux-amd64
21+
- name: Docker Login to Docker Registry
22+
run: echo ${{ secrets.VULCANIZEJENKINS_PAT }} | docker login -u vulcanizejenkins --password-stdin
23+
- name: Tag docker image
24+
run: docker tag docker.pkg.github.com/vulcanize/go-ethereum/go-ethereum:${{steps.vars.outputs.sha}} vulcanize/vdb-geth:${{steps.vars.outputs.tag}}
25+
- name: Docker Push to Docker Hub
26+
run: docker push vulcanize/vdb-geth:${{steps.vars.outputs.tag}}
2027
- name: Get release
2128
id: get_release
2229
uses: bruceadams/[email protected]

params/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const (
2424
VersionMajor = 1 // Major version component of the current release
2525
VersionMinor = 10 // Minor version component of the current release
2626
VersionPatch = 2 // Patch version component of the current release
27-
VersionMeta = "statediff-0.0.19" // Version metadata to append to the version string
27+
VersionMeta = "statediff-0.0.20" // Version metadata to append to the version string
2828
)
2929

3030
// Version holds the textual version string.

0 commit comments

Comments
 (0)