Skip to content

Commit 55ea1cb

Browse files
WITH AUTOREPO CONF
1 parent 62a03f5 commit 55ea1cb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ jobs:
4343
- uses: actions/checkout@v2
4444

4545
- name: Update repositories
46-
run: sudo apt install -y postgresql-common &&
47-
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh &&
46+
run: sudo apt install curl ca-certificates
47+
sudo install -d /usr/share/postgresql-common/pgdg &&
48+
sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc &&
49+
. /etc/os-release &&
50+
sudo sh -c "echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $VERSION_CODENAME-pgdg main' > /etc/apt/sources.list.d/pgdg.list" &&
4851
sudo apt update
4952

5053
- name: Install postgres

0 commit comments

Comments
 (0)