From d329c6303b445ae75b14844b9bf09aba414a44f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Wed, 25 May 2022 15:36:34 +0200 Subject: [PATCH] Forward CI env vars in Docker containers list adapted from https://github.com/watson/ci-info/blob/master/index.js#L55-L58 --- CHANGELOG.md | 1 + infrastructure/docker/docker-compose.builder.yml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87727d2..e94e1f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 3.8.0 (not released yet) * Add documentation cookbook for using pg_activity +* Forward CI env vars in Docker containers ## 3.7.0 (2022-05-24) diff --git a/infrastructure/docker/docker-compose.builder.yml b/infrastructure/docker/docker-compose.builder.yml index bb74c8c..a1da496 100644 --- a/infrastructure/docker/docker-compose.builder.yml +++ b/infrastructure/docker/docker-compose.builder.yml @@ -13,6 +13,12 @@ services: - postgres environment: - COMPOSER_MEMORY_LIMIT=-1 + # The following list contains the common environment variables exposed by CI platforms + - GITHUB_ACTIONS + - CI # Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari + - CONTINUOUS_INTEGRATION # Travis CI, Cirrus CI + - BUILD_NUMBER # Jenkins, TeamCity + - RUN_ID # TaskCluster, dsari volumes: - "../../${PROJECT_DIRECTORY}:/home/app/application:cached" - "${COMPOSER_CACHE_DIR}:/home/app/.composer/cache"