From fa52c021334ba9fc3f79ee595604ad218253d9ab Mon Sep 17 00:00:00 2001 From: Denis Granha Date: Mon, 15 Jun 2020 13:28:00 +0200 Subject: [PATCH 1/6] 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. --- .../deploy-docker-custom-message.yml | 25 +++++++++++++++++++ 1 file changed, 25 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..4561bf48bc7 --- /dev/null +++ b/.github/workflows/deploy-docker-custom-message.yml @@ -0,0 +1,25 @@ +name: Docker Image Release +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 }}" From cc749953a9def722484fdf18285745efa1a39946 Mon Sep 17 00:00:00 2001 From: Denis Granha Date: Mon, 15 Jun 2020 13:41:59 +0200 Subject: [PATCH 2/6] rename custom version docker build action --- .github/workflows/deploy-docker-custom-message.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-docker-custom-message.yml b/.github/workflows/deploy-docker-custom-message.yml index 4561bf48bc7..8f2a4e3b704 100644 --- a/.github/workflows/deploy-docker-custom-message.yml +++ b/.github/workflows/deploy-docker-custom-message.yml @@ -1,4 +1,4 @@ -name: Docker Image Release +name: Docker Image Release - Custom Version on: push jobs: deploy-docker: From 0156553d5e07e88e005bcab2ef8c18cfbc883ddc Mon Sep 17 00:00:00 2001 From: Denis Granha Date: Mon, 15 Jun 2020 15:10:37 +0200 Subject: [PATCH 3/6] add prefix for custom docker image build --- .github/workflows/deploy-docker-custom-message.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-docker-custom-message.yml b/.github/workflows/deploy-docker-custom-message.yml index 8f2a4e3b704..141991cd61d 100644 --- a/.github/workflows/deploy-docker-custom-message.yml +++ b/.github/workflows/deploy-docker-custom-message.yml @@ -22,4 +22,4 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} dockerfile: scripts/docker/alpine/Dockerfile tag_names: false - tags: "${{ env.GITHUB_REF }}" + tags: "testing/${{ env.GITHUB_REF }}" From 5b1123b9d563bc020e3d27a56fa3d7c4ef41edea Mon Sep 17 00:00:00 2001 From: Denis Granha Date: Mon, 15 Jun 2020 15:12:10 +0200 Subject: [PATCH 4/6] empty commit used to trigger ci-build-docker --- .github/workflows/deploy-docker-custom-message.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-docker-custom-message.yml b/.github/workflows/deploy-docker-custom-message.yml index 141991cd61d..e046b4b55a0 100644 --- a/.github/workflows/deploy-docker-custom-message.yml +++ b/.github/workflows/deploy-docker-custom-message.yml @@ -23,3 +23,4 @@ jobs: dockerfile: scripts/docker/alpine/Dockerfile tag_names: false tags: "testing/${{ env.GITHUB_REF }}" + From 631e70c6e94a430ee47a6397327966395bddac67 Mon Sep 17 00:00:00 2001 From: Denis Granha Date: Mon, 15 Jun 2020 15:30:06 +0200 Subject: [PATCH 5/6] docker image name cannot contain slashes in the deployment action ci-build-docker --- .github/workflows/deploy-docker-custom-message.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-docker-custom-message.yml b/.github/workflows/deploy-docker-custom-message.yml index e046b4b55a0..ea03fb2daee 100644 --- a/.github/workflows/deploy-docker-custom-message.yml +++ b/.github/workflows/deploy-docker-custom-message.yml @@ -22,5 +22,5 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} dockerfile: scripts/docker/alpine/Dockerfile tag_names: false - tags: "testing/${{ env.GITHUB_REF }}" + tags: "alpha-${{ env.GITHUB_REF }}" From ac0d2c38c03e70b64da7c339ac9cf37f38d265dc Mon Sep 17 00:00:00 2001 From: Denis Granha Date: Tue, 16 Jun 2020 10:26:49 +0200 Subject: [PATCH 6/6] Update deploy-docker-custom-message.yml Remove alpha prefix for docker images --- .github/workflows/deploy-docker-custom-message.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-docker-custom-message.yml b/.github/workflows/deploy-docker-custom-message.yml index ea03fb2daee..3429dd77500 100644 --- a/.github/workflows/deploy-docker-custom-message.yml +++ b/.github/workflows/deploy-docker-custom-message.yml @@ -22,5 +22,5 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} dockerfile: scripts/docker/alpine/Dockerfile tag_names: false - tags: "alpha-${{ env.GITHUB_REF }}" + tags: "${{ env.GITHUB_REF }}"