Upgrade deployer and use official GitHub action
This commit is contained in:
@@ -4,6 +4,8 @@ on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
concurrency: production_environment
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build assets and deploy
|
||||
@@ -42,8 +44,7 @@ jobs:
|
||||
- run: npm run build
|
||||
|
||||
- name: Deploy
|
||||
uses: musps/action-deployer-php@master
|
||||
uses: deployphp/action@v1
|
||||
with:
|
||||
args: deploy production
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
dep: deploy production
|
||||
|
||||
+1
-1
@@ -77,7 +77,7 @@
|
||||
}
|
||||
},
|
||||
"require-dev": {
|
||||
"deployer/deployer": "^7",
|
||||
"deployer/deployer": "^v7.0",
|
||||
"ichhabrecht/filefill": "^3.3",
|
||||
"typo3/testing-framework": "^6.16"
|
||||
},
|
||||
|
||||
+3
-1
@@ -64,6 +64,7 @@ host('production')
|
||||
->set('buspronet_path', '/home/www/p546128/html/kuschick/buspronet/buspronet')
|
||||
->set('bin/php', '/usr/local/bin/php')
|
||||
->set('http_user', 'p546128')
|
||||
->set('writable_mode', 'chmod')
|
||||
->set('bin/composer', '/usr/local/bin/composer')
|
||||
->set('composer_options', '--prefer-dist --no-progress --no-interaction --optimize-autoloader')
|
||||
->set('rsync_src', __DIR__)
|
||||
@@ -83,6 +84,7 @@ host('staging')
|
||||
->set('buspronet_path', '/home/www/p546128/html/kuschick/buspronet/buspronet')
|
||||
->set('bin/php', '/usr/local/bin/php')
|
||||
->set('http_user', 'p546128')
|
||||
->set('writable_mode', 'chmod')
|
||||
->set('bin/composer', '/usr/local/bin/composer')
|
||||
->set('composer_options', '--prefer-dist --no-progress --no-interaction --optimize-autoloader')
|
||||
->set('rsync_src', __DIR__)
|
||||
@@ -93,7 +95,7 @@ host('staging')
|
||||
|
||||
task('deploy', [
|
||||
'deploy:info',
|
||||
'deploy:prepare',
|
||||
'deploy:setup',
|
||||
'deploy:lock',
|
||||
'deploy:release',
|
||||
'rsync',
|
||||
|
||||
Reference in New Issue
Block a user