8000 ✌️Initial configs for erbase workflow by Vineees · Pull Request #2 · Morea-IFS/Erbase-2025 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

✌️Initial configs for erbase workflow #2

New issue
8000

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/erbase25.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Main Worflow Pipeline
run-name: ${{ github.actor }} Worflow Code 🚀
on:
push:
branches: [ "main" ]

jobs:
DeployProd:
name: Deploy to Production
runs-on: ubuntu-latest
environment:
name: production
url: 'http://erbase.morea-fs.org'
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Set up SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H ${{ secrets.SSH_IP }} >> ~/.ssh/known_hosts

- name: Deploy Application
run: |
ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_IP }} << 'EOF'
cd ${{ secrets.INSIDE_PROJECT_DIR }}
git pull origin main
date
EOF
0