Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

#143 デプロイ設定を更新 #157

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
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
29 changes: 29 additions & 0 deletions .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy into dev server

on:
push:
branches:
- develop

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: deploy at remote server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_SSHKEY }}
port: ${{ secrets.SERVER_PORT }}
envs: DIR
script_stop: true
script: |
source .bashrc
cd $DIR
git pull origin develop -f
composer.phar install
php artisan migrate
php artisan db:seed --force
env:
DIR: public_html/dev.api.app.afes.info
2 changes: 1 addition & 1 deletion .github/workflows/deploy_product.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
php artisan migrate
php artisan db:seed --force
env:
DIR: public_html/api.73.afes.info
DIR: public_html/api.app.afes.info