Update Video.jsx #93
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to EC2 | |
on: | |
push: | |
branches: | |
- Level--300 | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push Docker image | |
run: | | |
cd server | |
docker build -t harounalarabi/server . | |
docker push harounalarabi/server:latest | |
- name: Deploy to EC2 | |
uses: easingthemes/ssh-deploy@v2.1.4 | |
with: | |
SSH_PRIVATE_KEY: ${{ secrets.EC2_SSH_KEY }} | |
ARGS: "-avz --delete" | |
SOURCE: "server/" | |
REMOTE_HOST: ${{ secrets.HOST_DNS }} | |
REMOTE_USER: ${{ secrets.USERNAME }} | |
TARGET: "/home/ubuntu/server" |