Skip to content

Commit 7acb6ed

Browse files
committed
chore: set up SSH key in deploy-network workflow for CI Redis access
Without this, source_redis falls back to an ephemeral local Docker Redis container on the GitHub-hosted runner. Logs written during deployment are lost when the job ends, making them unretrievable via yarn ci dlog.
1 parent b2b258d commit 7acb6ed

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/deploy-network.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,16 @@ jobs:
135135
terraform_version: "1.7.5"
136136
terraform_wrapper: false # Disable the wrapper that adds debug output, this messes with reading terraform output
137137

138+
- name: Setup SSH key for CI Redis
139+
env:
140+
BUILD_INSTANCE_SSH_KEY: ${{ secrets.BUILD_INSTANCE_SSH_KEY }}
141+
run: |
142+
if [ -n "${BUILD_INSTANCE_SSH_KEY:-}" ]; then
143+
mkdir -p ~/.ssh
144+
echo "${BUILD_INSTANCE_SSH_KEY}" | base64 --decode > ~/.ssh/build_instance_key
145+
chmod 600 ~/.ssh/build_instance_key
146+
fi
147+
138148
- name: Deploy network
139149
id: deploy-network
140150
env:

0 commit comments

Comments
 (0)