Skip to content

Test deployment

Test deployment #1

Workflow file for this run

name: Deploy
on: push
jobs:
Deploy:
name: Deploy to Staging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build & Deploy
env:
PRIVATE_KEY: ${{ secrets.DOCKER_SSH_PRIVATE_KEY }}
HOSTNAME: ec2-18-207-237-97.compute-1.amazonaws.com
USER_NAME: ec2-user
run: |
echo "$PRIVATE_KEY" > private_key && chmod 600 private_key
ssh -o StrictHostKeyChecking=no -i private_key ${USER_NAME}@${HOSTNAME} '
ls -la
'