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

Commit

Permalink
Trigger custom docker build when adding ci-build-docker to the commit (
Browse files Browse the repository at this point in the history
…#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
  • Loading branch information
Denis Granha committed Jun 16, 2020
1 parent 2d75036 commit 698e696
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy-docker-custom-message.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docker Image Release - Custom Version
on: push
jobs:
deploy-docker:
name: Build Docker Image for Custom Branches
if: "contains(github.event.head_commit.message, 'ci-build-docker')"
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: false
tags: "${{ env.GITHUB_REF }}"

0 comments on commit 698e696

Please sign in to comment.