Skip to content

Commit be0437d

Browse files
committed
configs
1 parent 75eade6 commit be0437d

3 files changed

Lines changed: 11 additions & 14 deletions

File tree

.github/workflows/deployment-testing.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,9 @@ jobs:
4848
chmod 600 /home/testuser/.ssh/authorized_keys
4949
"
5050
51-
- name: Wait for SSH to be ready
52-
run: |
53-
for i in {1..30}; do
54-
if ssh -o StrictHostKeyChecking=no -o ConnectTimeout=5 -i /tmp/test_key testuser@localhost "echo 'SSH ready'" 2>/dev/null; then
55-
echo "SSH is ready"
56-
break
57-
fi
58-
echo "Waiting for SSH... ($i/30)"
59-
sleep 2
60-
done
61-
6251
- name: Run deployment test
6352
run: |
64-
cd infra
65-
uv run python deploy.py settings/dev.yaml
53+
uv run python infra/deploy.py infra/configs/dev.yaml
6654
6755
- name: Start services and test /ping endpoints
6856
run: |

infra/configs/dev.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
connection:
2+
host: localhost
3+
user: testuser
4+
private_key_filename: /tmp/test_key
5+
6+
remote_base_path: /tmp/hyperleda_test
7+
configs_env: test
8+
ads_token: test_token
9+
postgres_password: test_password

infra/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get_spec(params: EnvParams) -> deployment.RemoteSpec:
5858
),
5959
deployment.RemoteFile(
6060
"postgres/dockerfile",
61-
"postgres/dockerfile"
61+
"postgres/dockerfile",
6262
),
6363
deployment.RemoteDirectory(
6464
"infra/configs/nginx",

0 commit comments

Comments
 (0)