Skip to content

Commit

Permalink
Merge pull request #1447 from bakaphp/add-ec2-deploy-action
Browse files Browse the repository at this point in the history
add ec2 deploy github action
  • Loading branch information
rwhite27 authored Jun 5, 2024
2 parents 8e175b4 + 31aeadd commit a3cc583
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ec2-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Push to EC2

on:
push:
branches:
- 'development'

workflow_dispatch:

jobs:
deploy:
name: Deploy to EC2
environment: ${{ github.ref_name }}
runs-on: ubuntu-latest

steps:
- name: Checkout the files
uses: actions/checkout@v2

- name: Deploy to EC2
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.AWS_EC2_SSH_KEY }}
REMOTE_HOST: ${{ secrets.AWS_EC2_HOST }}
REMOTE_USER: ${{ secrets.AWS_EC2_USERNAME }}
TARGET: ${{ secrets.AWS_EC2_TARGET_DIR }}

0 comments on commit a3cc583

Please sign in to comment.