From 3cb4770dff796e471030b74239ba0dab7eb455be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 7 Jun 2022 11:13:14 +0200 Subject: [PATCH 1/3] test on build base image --- .drone.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index bc23bc4..3dcbe5f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,13 +2,12 @@ kind: pipeline type: docker name: build-base-image -image_pull_secrets: - - dockerconfig -trigger: - event: - - cron - cron: - - base-image + +#trigger: +# event: +# - cron +# cron: +# - base-image steps: - name: build-base-image From c9fba86bc71a25245f1b87146203ca579f275507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 7 Jun 2022 11:40:46 +0200 Subject: [PATCH 2/3] set default composer home variable in base image --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 20e0c53..6565d43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,6 +44,7 @@ RUN { \ COPY --from=composer:2 /usr/bin/composer /usr/bin/composer ENV COMPOSER_ALLOW_SUPERUSER=1 ENV COMPOSER_MEMORY_LIMIT=-1 +ENV COMPOSER_HOME=/var/www/app/.composer WORKDIR /var/www/app @@ -76,7 +77,6 @@ ENTRYPOINT ["/entrypoint.sh"] ENV PHP_FPM_USER=www-data \ PHP_FPM_GROUP=www-data \ - COMPOSER_HOME=/var/www/app/.composer \ SESSION_LIFETIME=10800 CMD [ "php-fpm" ] From 54dea673d411178c95c9a209a4a932031119d3b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 7 Jun 2022 11:42:57 +0200 Subject: [PATCH 3/3] build base image on cronjob and push --- .drone.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3dcbe5f..e3d6b89 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,11 +3,12 @@ kind: pipeline type: docker name: build-base-image -#trigger: -# event: -# - cron -# cron: -# - base-image +trigger: + event: + - cron + - push + cron: + - base-image steps: - name: build-base-image