File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,15 @@ jobs:
104
104
environment : Node deployment
105
105
needs : publish-images
106
106
runs-on : ubuntu-latest
107
+ strategy :
108
+ matrix :
109
+ include :
110
+ - node : First node
111
+ deploy_ssh_key : NODE_DEPLOY_SSH_KEY_1
112
+ deploy_ssh_host : NODE_DEPLOY_SSH_HOST_1
113
+ - node : Second node
114
+ deploy_ssh_key : NODE_DEPLOY_SSH_KEY_2
115
+ deploy_ssh_host : NODE_DEPLOY_SSH_HOST_2
107
116
steps :
108
117
- name : Configure SSH
109
118
# TODO(dmu) MEDIUM: Once/if github implements secrets on job level
@@ -123,8 +132,8 @@ jobs:
123
132
END
124
133
env :
125
134
CONTINUOUS_DEPLOYMENT_ENABLED : ${{ secrets.NODE_CONTINUOUS_DEPLOYMENT_ENABLED }}
126
- DEPLOY_SSH_KEY : ${{ secrets.NODE_DEPLOY_SSH_KEY }}
127
- DEPLOY_SSH_HOST : ${{ secrets.NODE_DEPLOY_SSH_HOST }}
135
+ DEPLOY_SSH_KEY : ${{ secrets[matrix.deploy_ssh_key] }}
136
+ DEPLOY_SSH_HOST : ${{ secrets[matrix.deploy_ssh_host] }}
128
137
DEPLOY_SSH_USER : ${{ secrets.NODE_DEPLOY_SSH_USER }}
129
138
130
139
- name : Run deploy
You can’t perform that action at this time.
0 commit comments