Compare commits
No commits in common. "47951ec2ac37b30b3c71708a1ae22a740b457e42" and "29c51e6d745317b0078e3428e605ce2c41a3b5bd" have entirely different histories.
47951ec2ac
...
29c51e6d74
2 changed files with 2 additions and 41 deletions
|
|
@ -1,39 +0,0 @@
|
||||||
name: Deploy Laravel App
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: self-hosted
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up SSH
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/.ssh
|
|
||||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
|
|
||||||
chmod 600 ~/.ssh/id_ed25519
|
|
||||||
ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
|
|
||||||
|
|
||||||
- name: Deploy to server
|
|
||||||
run: |
|
|
||||||
ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << 'EOF'
|
|
||||||
set -e
|
|
||||||
cd ${{ vars.DEPLOY_PATH }}
|
|
||||||
|
|
||||||
git pull origin main
|
|
||||||
|
|
||||||
composer install --no-dev --optimize-autoloader
|
|
||||||
|
|
||||||
php artisan config:cache
|
|
||||||
php artisan route:cache
|
|
||||||
php artisan view:cache
|
|
||||||
|
|
||||||
chmod -R 775 storage bootstrap/cache
|
|
||||||
|
|
||||||
sudo systemctl reload php${{ vars.PHP_VERSION }}-fpm
|
|
||||||
EOF
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
services:
|
services:
|
||||||
laravel.test:
|
laravel.test:
|
||||||
build:
|
build:
|
||||||
context: './vendor/laravel/sail/runtimes/8.4'
|
context: './vendor/laravel/sail/runtimes/8.5'
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
args:
|
args:
|
||||||
WWWGROUP: '${WWWGROUP}'
|
WWWGROUP: '${WWWGROUP}'
|
||||||
MYSQL_CLIENT: mariadb-client
|
MYSQL_CLIENT: mariadb-client
|
||||||
image: 'sail-8.4/app'
|
image: 'sail-8.5/app'
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- 'host.docker.internal:host-gateway'
|
- 'host.docker.internal:host-gateway'
|
||||||
ports:
|
ports:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue