Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 874462b

Browse files
authored
Add Docker build and push to github actions (#11555)
* Add github action for dockerhub deployment * Add VCS_REF and BUILD_DATE as buildargs for docker image * deploy docker images also based on tag * move docker deployment to it's own github action so it can be parallelized * remove unnecesary OS check in the docker deployment script * adding initial steps of checkout and basic toolchain for docker github action * Update deploy-docker.yml Remove unnecesary line for checkout sources on deploy docker script * remove build args from deploy docker script * Update deploy-docker.yml
1 parent bb2d7fb commit 874462b

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ jobs:
8787
path: artifacts/
8888
- name: Prepare build directory for cache
8989
shell: bash
90-
run: bash scripts/actions/clean-target.sh
90+
run: bash scripts/actions/clean-target.sh

.github/workflows/deploy-docker.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Docker Image Release
2+
3+
on:
4+
push:
5+
branches:
6+
- stable
7+
tags:
8+
- v2*
9+
10+
jobs:
11+
deploy-docker:
12+
name: Build Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout sources
16+
uses: actions/checkout@master
17+
- name: Install toolchain
18+
uses: actions-rs/toolchain@v1
19+
with:
20+
toolchain: stable
21+
profile: minimal
22+
override: true
23+
- name: Deploy to docker hub
24+
uses: elgohr/Publish-Docker-Github-Action@master
25+
with:
26+
name: openethereum/openethereum
27+
username: ${{ secrets.DOCKER_USERNAME }}
28+
password: ${{ secrets.DOCKER_PASSWORD }}
29+
dockerfile: scripts/docker/alpine/Dockerfile
30+
tag_names: true

0 commit comments

Comments
 (0)