chore(devops):remove github actions
This commit is contained in:
parent
e639d79654
commit
363849ba4e
31
.github/workflows/github-actions-ec2.yml
vendored
31
.github/workflows/github-actions-ec2.yml
vendored
|
|
@ -1,31 +0,0 @@
|
||||||
name: Deploy Project
|
|
||||||
|
|
||||||
# Trigger deployment only on push to master branch
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
name: Deploy Front-End
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Deploy to EC2 instance
|
|
||||||
uses: appleboy/ssh-action@master
|
|
||||||
with:
|
|
||||||
host: ${{ secrets.HOST_DNS }}
|
|
||||||
username: ${{ secrets.USERNAME }}
|
|
||||||
key: ${{ secrets.EC2_SSH_KEY }}
|
|
||||||
script: |
|
|
||||||
cd ~/oktopus/frontend
|
|
||||||
git pull origin main
|
|
||||||
yarn install
|
|
||||||
yarn build
|
|
||||||
pm2 restart oktopus
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user