From 8ec7b4fcf51dbbf20f616b438c1f88a21b7d7cd9 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Mon, 16 Oct 2017 10:32:51 +0200 Subject: [PATCH] chore(codefresh): add a step to download docker binary (#1283) --- codefresh.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/codefresh.yml b/codefresh.yml index 25413098b..c669dbaef 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -18,9 +18,17 @@ steps: - grunt build-webapp - mv api/cmd/portainer/portainer dist/ + download_docker_binary: + image: busybox + working_directory: ${{build_frontend}} + commands: + - wget -O /tmp/docker-binaries.tgz https://download.docker.com/linux/static/stable/x86_64/docker-${{DOCKER_VERSION}}.tgz + - tar -xf /tmp/docker-binaries.tgz -C /tmp + - mv /tmp/docker/docker dist/ + build_image: type: build - working_directory: ${{build_frontend}} + working_directory: ${{download_docker_binary}} dockerfile: ./build/linux/Dockerfile image_name: portainer/portainer tag: ${{CF_BRANCH}}