From 698e696a3a5a624a61e2907363e6934d06005173 Mon Sep 17 00:00:00 2001 From: Denis Granha Date: Tue, 16 Jun 2020 16:01:08 +0200 Subject: [PATCH] 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 --- .../deploy-docker-custom-message.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/deploy-docker-custom-message.yml diff --git a/.github/workflows/deploy-docker-custom-message.yml b/.github/workflows/deploy-docker-custom-message.yml new file mode 100644 index 00000000000..3429dd77500 --- /dev/null +++ b/.github/workflows/deploy-docker-custom-message.yml @@ -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 }}" +