Skip to content

Commit 5612c3a

Browse files
author
Layko Andrey
committed
CI/CD
1 parent 9229318 commit 5612c3a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/open-api-ci-cd.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ jobs:
4848

4949
steps:
5050

51+
- name: Setup SSH connection
52+
run: |
53+
eval $(ssh-agent -s)
54+
echo "${{ secrets.DEPLOY_KEY_PROD }}" > deploy_key
55+
chmod 600 ./deploy_key
56+
ssh-keyscan ${{ secrets.DEPLOY_HOST_PROD }} >> ~/.ssh/known_hosts
57+
chmod 644 ~/.ssh/known_hosts
58+
ssh -i ./deploy_key ${{ secrets.DEPLOY_USER_PROD }}@${{ secrets.DEPLOY_HOST_PROD }} "
59+
docker --version"
60+
61+
62+
5163
- name: Checkout repository
5264
uses: actions/checkout@v2
5365

0 commit comments

Comments
 (0)