From ecccd5402555729d5ba0ec03d167e285d1b548b4 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Fri, 14 Dec 2018 14:37:03 +0100
Subject: [PATCH] Use the php version in .env file to use the correct L3D image
 tag

---
 ahoy.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ahoy.yml b/ahoy.yml
index 8220e9b..6cf4e04 100644
--- a/ahoy.yml
+++ b/ahoy.yml
@@ -1,13 +1,13 @@
 ahoyapi: v2
 commands:
   exec:
-    cmd: docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v ${PWD}:/drupal -v $SSH_AUTH_SOCK:/ssh-agent -v ${HOME}/.traefik:/root/.traefik -e SSH_AUTH_SOCK=/ssh-agent -w /drupal registry.lakedrops.com/docker/l3d "$@"
+    cmd: export $(cat .env | xargs) && docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v ${PWD}:/drupal -v $SSH_AUTH_SOCK:/ssh-agent -v ${HOME}/.traefik:/root/.traefik -e SSH_AUTH_SOCK=/ssh-agent -w /drupal registry.lakedrops.com/docker/l3d:php-${PHP_VERSION} "$@"
     hide: true
   up:
     cmd: ahoy dev exec /usr/bin/fish
     usage: Start container with all development tools
   update:
-    cmd: docker pull registry.lakedrops.com/docker/l3d
+    cmd: export $(cat .env | xargs) && docker pull registry.lakedrops.com/docker/l3d:php-${PHP_VERSION}
     usage: Update image with the latest development tools
   scaffold:
     cmd: ahoy dev exec composer lakedrops:scaffold
-- 
GitLab