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
This commit is contained in:
parent
bb2d7fb8c9
commit
874462bfc0
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -87,4 +87,4 @@ jobs:
|
||||
path: artifacts/
|
||||
- name: Prepare build directory for cache
|
||||
shell: bash
|
||||
run: bash scripts/actions/clean-target.sh
|
||||
run: bash scripts/actions/clean-target.sh
|
30
.github/workflows/deploy-docker.yml
vendored
Normal file
30
.github/workflows/deploy-docker.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
name: Docker Image Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- stable
|
||||
tags:
|
||||
- v2*
|
||||
|
||||
jobs:
|
||||
deploy-docker:
|
||||
name: Build Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@master
|
||||
- name: Install toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
override: true
|
||||
- name: Deploy to docker hub
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: openethereum/openethereum
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
dockerfile: scripts/docker/alpine/Dockerfile
|
||||
tag_names: true
|
Loading…
Reference in New Issue
Block a user