Skip to content

Commit f4712fc

Browse files
committed
Use docker to seed infrastructure links
1 parent 349c43d commit f4712fc

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

github-actions/seed-infrastructure-links/action.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ description:
55
runs:
66
using: "composite"
77
steps:
8-
- name: Set up PostgreSQL client
9-
shell: bash
10-
run: |
11-
sudo apt-get -yqq install postgresql-client
12-
138
- name: Fetch infrastructure link dump
149
shell: bash
1510
run: |
@@ -19,19 +14,19 @@ runs:
1914
- name: Seed db1 with infrastructure links
2015
shell: bash
2116
run: |
22-
psql postgresql://dbadmin:adminpassword@localhost:6532/jore4e2e < infraLinks.sql
17+
docker exec -i testdb psql postgresql://dbadmin:adminpassword@localhost:5432/jore4e2e < infraLinks.sql
2318
2419
- name: Seed db2 with infrastructure links
2520
shell: bash
2621
run: |
27-
psql postgresql://dbadmin:adminpassword@localhost:6533/jore4e2e < infraLinks.sql
22+
docker exec -i testdb-e2e1 psql postgresql://dbadmin:adminpassword@localhost:5432/jore4e2e < infraLinks.sql
2823
2924
- name: Seed db3 with infrastructure links
3025
shell: bash
3126
run: |
32-
psql postgresql://dbadmin:adminpassword@localhost:6534/jore4e2e < infraLinks.sql
27+
docker exec -i testdb-e2e2 psql postgresql://dbadmin:adminpassword@localhost:5432/jore4e2e < infraLinks.sql
3328
3429
- name: Seed db4 with infrastructure links
3530
shell: bash
3631
run: |
37-
psql postgresql://dbadmin:adminpassword@localhost:6432/jore4e2e < infraLinks.sql
32+
docker exec -i testdb-e2e3 psql postgresql://dbadmin:adminpassword@localhost:5432/jore4e2e < infraLinks.sql

0 commit comments

Comments
 (0)