From 936bd7c79bfffa3a12cf411cb31a55baa9ba0c27 Mon Sep 17 00:00:00 2001 From: Chatewgne Date: Tue, 15 Feb 2022 15:07:53 +0100 Subject: [PATCH] Set postgis image due to breaking change - To revert on next postgis image release (12/05/22) --- .circleci/config.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 48e012021f..538d43145e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -48,7 +48,7 @@ jobs: steps: - checkout - run: cp .env-prod.dist .env; cp docker-compose-prod.yml docker-compose.yml - - run: docker run -p 5432:5432 --env-file .env -d postgis/postgis:11-2.5 + - run: docker run -p 5432:5432 --env-file .env -d postgis/postgis:11-2.5@sha256:61554f848deced4c0c25a1c1d8dff9d25de2715273ae8a49e71626c8221093bf - run: docker pull geotrekce/circleci-admin:$CIRCLE_WORKFLOW_ID - run: docker tag geotrekce/circleci-admin:$CIRCLE_WORKFLOW_ID geotrekce/admin:latest - run: docker-compose run web ./manage.py makemigrations --check @@ -66,7 +66,7 @@ jobs: steps: - checkout - run: cp .env-prod.dist .env; cp docker-compose-prod.yml docker-compose.yml - - run: docker run -p 5432:5432 --env-file .env -d postgis/postgis:11-2.5 + - run: docker run -p 5432:5432 --env-file .env -d postgis/postgis:11-2.5@sha256:61554f848deced4c0c25a1c1d8dff9d25de2715273ae8a49e71626c8221093bf - run: docker pull geotrekce/circleci-admin:18.04-$CIRCLE_WORKFLOW_ID - run: docker tag geotrekce/circleci-admin:18.04-$CIRCLE_WORKFLOW_ID geotrekce/admin:latest - run: docker-compose run web update.sh @@ -78,7 +78,7 @@ jobs: steps: - checkout - run: cp .env-prod.dist .env; cp docker-compose-prod.yml docker-compose.yml - - run: docker run -p 5432:5432 --env-file .env -d postgis/postgis:11-2.5 + - run: docker run -p 5432:5432 --env-file .env -d postgis/postgis:11-2.5@sha256:61554f848deced4c0c25a1c1d8dff9d25de2715273ae8a49e71626c8221093bf - run: docker pull geotrekce/circleci-admin:$CIRCLE_WORKFLOW_ID - run: docker tag geotrekce/circleci-admin:$CIRCLE_WORKFLOW_ID geotrekce/admin:latest - run: docker-compose run web update.sh @@ -95,7 +95,7 @@ jobs: steps: - checkout - run: cp .env-prod.dist .env; cp docker-compose-prod.yml docker-compose.yml - - run: docker run -p 5432:5432 --env-file .env -d postgis/postgis:11-2.5 + - run: docker run -p 5432:5432 --env-file .env -d postgis/postgis:11-2.5@sha256:61554f848deced4c0c25a1c1d8dff9d25de2715273ae8a49e71626c8221093bf - run: docker pull geotrekce/circleci-admin:18.04-$CIRCLE_WORKFLOW_ID - run: docker tag geotrekce/circleci-admin:18.04-$CIRCLE_WORKFLOW_ID geotrekce/admin:latest - run: docker-compose run web update.sh @@ -126,7 +126,7 @@ jobs: - run: cp .env-prod.dist .env; cp docker-compose-prod.yml docker-compose.yml - run: echo 'LANGUAGES=en fr' >> .env - run: echo 'LANGUAGE_CODE=en' >> .env - - run: docker run -p 5432:5432 --env-file .env -d postgis/postgis:11-2.5 + - run: docker run -p 5432:5432 --env-file .env -d postgis/postgis:11-2.5@sha256:61554f848deced4c0c25a1c1d8dff9d25de2715273ae8a49e71626c8221093bf - run: docker pull geotrekce/circleci-admin:$CIRCLE_WORKFLOW_ID - run: docker tag geotrekce/circleci-admin:$CIRCLE_WORKFLOW_ID geotrekce/admin:latest - run: docker-compose run web update.sh