Skip to content

Commit 77af2df

Browse files
committed
Deploy code on second Node.
1 parent 8960cc8 commit 77af2df

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/master.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ jobs:
104104
environment: Node deployment
105105
needs: publish-images
106106
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
107116
steps:
108117
- name: Configure SSH
109118
# TODO(dmu) MEDIUM: Once/if github implements secrets on job level
@@ -123,8 +132,8 @@ jobs:
123132
END
124133
env:
125134
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] }}
128137
DEPLOY_SSH_USER: ${{ secrets.NODE_DEPLOY_SSH_USER }}
129138

130139
- name: Run deploy

0 commit comments

Comments
 (0)