Skip to content

Commit

Permalink
fix postgresql test - 3
Browse files Browse the repository at this point in the history
Signed-off-by: daizhenyu <[email protected]>
  • Loading branch information
daizhenyu committed Dec 17, 2024
1 parent ce10209 commit cdbc507
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ runs:
- name: install postgresql
shell: bash
run: |
curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
sudo apt update
lsb_release -a
apt-cache madison postgresql-14
sudo apt install -y postgresql-14=14.15-1.pgdg22.04+1 postgresql-client-14=14.15-1.pgdg22.04+1
# curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
# echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
# sudo apt update
# sudo apt install -y postgresql-14=14.15-1.pgdg22.04+1 postgresql-client-14=14.15-1.pgdg22.04+1
wget http://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-14/postgresql-14_14.15-1.pgdg22.04+1_amd64.deb
wget http://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-client-14/postgresql-client-14_14.15-1.pgdg22.04+1_amd64.deb
sudo dpkg -i postgresql-client-14_14.15-1.pgdg22.04+1_amd64.deb
sudo dpkg -i postgresql-14_14.15-1.pgdg22.04+1_amd64.deb
sudo apt-get -f install
sudo service postgresql start
sudo service postgresql status
sudo -u postgres psql -c "CREATE DATABASE test;"
Expand Down

0 comments on commit cdbc507

Please sign in to comment.