From 7ae02d9f945af8f4691b40b641fc24db2e7e9cea Mon Sep 17 00:00:00 2001 From: Carlos Gomes Date: Thu, 11 Nov 2021 19:07:46 +0100 Subject: [PATCH] Make the deployer version dynamic per PHP version PHP 7.1 has to use older versions --- .github/workflows/ci.yml | 1 + Dockerfile | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f6962bf..8cdad87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,7 @@ jobs: push: true build-args: | FROM_IMAGE=php:7.1-cli-alpine + DEPLOYER_VERSION="v6.6.0" PECL_EXT="" ENABLE_EXT="" PHP_EXT=mysqli pspell zip mcrypt diff --git a/Dockerfile b/Dockerfile index 32c05e5..417687c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,8 @@ FROM $FROM_IMAGE LABEL maintainer="Carlos A. Gomes " +ARG DEPLOYER_VERSION="v6.8.0" + RUN apk add --no-cache \ zsh \ vim \ @@ -18,7 +20,7 @@ RUN apk add --no-cache \ yarn \ composer \ make \ -&& curl -L https://deployer.org/releases/v6.8.0/deployer.phar --output /usr/local/bin/dep \ +&& curl -L https://deployer.org/releases/${DEPLOYER_VERSION}/deployer.phar --output /usr/local/bin/dep \ && chmod +x /usr/local/bin/dep ARG PECL_EXT="mcrypt-1.0.4"