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

Commit 698e696

Browse files
author
Denis Granha
authored
Trigger custom docker build when adding ci-build-docker to the commit (#11782)
* New Github Actions for Docker build It creates an images with the name of the value GITHUB_REF and it gets triggered everytime there is ci-build-docker in the commit message. * rename custom version docker build action * add prefix for custom docker image build * empty commit used to trigger ci-build-docker * docker image name cannot contain slashes in the deployment action ci-build-docker * Update deploy-docker-custom-message.yml Remove alpha prefix for docker images
1 parent 2d75036 commit 698e696

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Docker Image Release - Custom Version
2+
on: push
3+
jobs:
4+
deploy-docker:
5+
name: Build Docker Image for Custom Branches
6+
if: "contains(github.event.head_commit.message, 'ci-build-docker')"
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout sources
10+
uses: actions/checkout@master
11+
- name: Install toolchain
12+
uses: actions-rs/toolchain@v1
13+
with:
14+
toolchain: stable
15+
profile: minimal
16+
override: true
17+
- name: Deploy to docker hub
18+
uses: elgohr/Publish-Docker-Github-Action@master
19+
with:
20+
name: openethereum/openethereum
21+
username: ${{ secrets.DOCKER_USERNAME }}
22+
password: ${{ secrets.DOCKER_PASSWORD }}
23+
dockerfile: scripts/docker/alpine/Dockerfile
24+
tag_names: false
25+
tags: "${{ env.GITHUB_REF }}"
26+

0 commit comments

Comments
 (0)