Skip to content
New issue

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

chore: remove deploy #488

Merged
merged 1 commit into from
Oct 15, 2024
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
52 changes: 0 additions & 52 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,56 +63,4 @@ jobs:
# DB_CONNECTION: sqlite
# DB_DATABASE: database/database.sqlite
# run: php artisan test
deploy:
if: ${{ github.event_name == 'push' }}
name: Deploy
runs-on: ubuntu-latest
needs: build
environment:
name: demo
url: https://loger.neatlancer.com/
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.DO_DOPLET_SECRET }}
known_hosts: unnecessary

- name: Adding Known Hosts
run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts

- name: Download frontend build
uses: actions/download-artifact@v3

with:
name: frontend-build
path: public

- name: Store live name
run: git remote add live ${{ secrets.DO_REPO_URL }}

- name: Deploy with git
env:
branch_name: live_digital_ocean
run: |
echo "Deploy to staging server"
git config --global user.email "<>"
git config --global user.name "Action Bot"
git add .
git checkout -b $branch_name
git commit -m "deploy: build"
git push live $branch_name:master -f
echo "deployed to prod-staging"

- name: Update Composer PHP
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.DO_DOPLET_SECRET }}
script: |
cd /var/www/loger.com
composer update --ignore-platform-reqs
Loading