From 9f5a0b9c4ebfeb57f928e63496e587e42657d291 Mon Sep 17 00:00:00 2001 From: Saber Haj Rabiee Date: Thu, 22 Feb 2024 05:58:12 -0800 Subject: [PATCH] purge all postgres versions --- .github/workflows/metrics.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/metrics.yml b/.github/workflows/metrics.yml index 5fd07955a118..9a051b840a63 100644 --- a/.github/workflows/metrics.yml +++ b/.github/workflows/metrics.yml @@ -32,7 +32,8 @@ jobs: if: matrix.backend == 'postgres' run: | sudo apt-get update - sudo apt install gnupg2 -y + sudo DEBIAN_FRONTEND=noninteractive apt-get --purge remove postgresql\* -y + sudo apt-get install gnupg2 -y curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' PG_VER=16