Skip to content

Update main.yml

Update main.yml #18

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches: [ '*' ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Test SSH
run: |
ssh-add -l
echo ${{ secrets.SERVER_USER }}
echo ${{ secrets.SERVER_IP }}
ssh [email protected] ls /
docker -H ssh://${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} ps