deployphp / action Goto Github PK
View Code? Open in Web Editor NEWGitHub Action for Deployer
License: MIT License
GitHub Action for Deployer
License: MIT License
Here's the output. As you can see, it's trying to connect with the user runner
. I assume this is the local user for github actions but as you can see below, I set remote_user
to jamar
so I'm not sure why that's being ignored.
Run deployphp/[email protected]
Downloading "https://deployer.org/deployer.phar".
[localhost] > git rev-parse --abbrev-ref HEAD
[localhost] < master
✈︎ Deploying master on 96.30.197.133
• done on [96.30.197.133]
➤ Executing task deploy:prepare
[96.30.197.133] > echo $0
[96.30.197.133] < ssh multiplexing initialization
[96.30.197.133] < [email protected]: Permission denied (publickey).
➤ Executing task deploy:failed
• done on [96.30.197.133]
✔ Ok [0ms]
➤ Executing task deploy:unlock
[96.30.197.133] > rm -f /var/www/sites/jamar/.dep/deploy.lock
[96.30.197.133] < ssh multiplexing initialization
[96.30.197.133] < [email protected]: Permission denied (publickey).
In Client.php line 103:
[Deployer\Exception\RuntimeException (-1)]
The command "rm -f /var/www/sites/jamar/.dep/deploy.lock" failed.
Exit Code: -1 (Unknown error)
Host Name: 96.30.197.133
================
[email protected]: Permission denied (publickey).
Exception trace:
at phar:///home/runner/work/jamar/jamar/deployer.phar/src/Ssh/Client.php:103
Deployer\Ssh\Client->run() at phar:///home/runner/work/jamar/jamar/deployer.phar/src/functions.php:304
Deployer\run() at phar:///home/runner/work/jamar/jamar/deployer.phar/recipe/deploy/lock.php:30
Deployer\Deployer::Deployer\{closure}() at n/a:n/a
call_user_func() at phar:///home/runner/work/jamar/jamar/deployer.phar/src/Task/Task.php:105
Deployer\Task\Task->run() at phar:///home/runner/work/jamar/jamar/deployer.phar/src/Executor/SeriesExecutor.php:60
Deployer\Executor\SeriesExecutor->run() at phar:///home/runner/work/jamar/jamar/deployer.phar/src/Console/TaskCommand.php:157
Deployer\Console\TaskCommand->execute() at phar:///home/runner/work/jamar/jamar/deployer.phar/vendor/symfony/console/Command/Command.php:255
Symfony\Component\Console\Command\Command->run() at phar:///home/runner/work/jamar/jamar/deployer.phar/vendor/symfony/console/Application.php:924
Symfony\Component\Console\Application->doRunCommand() at phar:///home/runner/work/jamar/jamar/deployer.phar/src/Console/Application.php:133
Deployer\Console\Application->doRunCommand() at phar:///home/runner/work/jamar/jamar/deployer.phar/vendor/symfony/console/Application.php:265
Symfony\Component\Console\Application->doRun() at phar:///home/runner/work/jamar/jamar/deployer.phar/vendor/symfony/console/Application.php:141
Symfony\Component\Console\Application->run() at phar:///home/runner/work/jamar/jamar/deployer.phar/src/Deployer.php:326
Deployer\Deployer::run() at phar:///home/runner/work/jamar/jamar/deployer.phar/bin/dep:136
require() at /home/runner/work/jamar/jamar/deployer.phar:4
deploy [-p|--parallel] [-l|--limit LIMIT] [--no-hooks] [--log LOG] [--roles ROLES] [--hosts HOSTS] [-o|--option OPTION] [--] [<stage>]
Error: Failed: dep deploy -vvv
//deploy.php
<?php
namespace Deployer;
require 'recipe/laravel.php';
// Config
set('repository', '[email protected]:ortzinator/jamar.git');
add('shared_files', ['.env']);
add('shared_dirs', ['storage']);
add('writable_dirs', ['storage']);
// Hosts
host('96.30.197.133')
->set('remote_user', 'jamar')
->set('deploy_path', '/var/www/sites/jamar');
// Tasks
task('build', function () {
cd('{{release_path}}');
run('npm run build');
});
after('deploy:failed', 'deploy:unlock');
#deploy.yml
name: deploy
on:
push:
branches: [master]
concurrency: production_environment
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.0"
- name: Deploy
uses: deployphp/[email protected]
with:
private-key: ${{ secrets.PRIVATE_KEY }}
known-hosts: ${{ secrets.KNOWN_HOSTS }}
dep: deploy -vvv
I think it would be great to have an SSH config input to follow the best practices as described in deployer documentation.
Somehow my deployment is failing and it does look like the command could not be found.
Deployer itself has been required via composer.
My workflow setup:
name: Deploy
on:
push:
branches: [ zero-downtime ]
pull_request:
branches: [ zero-downtime ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: 8.0
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
- name: Install dependencies
run: composer install --no-progress --no-interaction
- name: Deploy
uses: deployphp/action@master
with:
private-key: ${{ secrets.PRIVATE_KEY }}
dep: deploy -vvv
It seems that if an error occurs during deploy process, the action completes successfully. In such way there is no evidence that the deploy failed, unless to check carefully the action log.
...
...
➤ Executing task deploy:update_code
➤ Executing task deploy:failed
• done on [xxx.xxx.xxx.xxx]
✔ Ok [0ms]
Am I missing something?
Thank you
I think somebody forgot to update/upload something?
https://deployer.org/deployer.phar gives a 404 that ruins the whole action.
Hi guys,
thank you for deployer and this GitHub Action!
I'd like to point out that as stated here you should create a v1
tag and move it every time you create a new release.
I know that moving tags sounds wrong and it could be harmful but this, at this time, is the only way to automatically use newer releases.
After building an artifact (tested with 250MB artifact), Github Action fails with the following error:
[Symfony\Component\Process\Exception\ProcessFailedException]
The command "rsync -azP -e 'ssh -A -p *** -o UserKnownHostsFile=/dev/null
-o StrictHostKeyChecking=no' 'artifacts/artifact.tar.gz' '[email protected]:/srv/releases/2009076181'" failed.
Exit Code: 255(Unknown error)
Working directory: /__w/XXX-magento2/XXX-magento2
Output:
================
sending incremental file list
artifact.tar.gz
32,768 0% 0.00kB/s 0:00:00
Error Output:
================
client_loop: send disconnect: Broken pipe
rsync: [sender] write error: Broken pipe (32)
rsync error: unexplained error (code 2[55](https://github.com/XXX/XXX-magento2/runs/5612222340?check_suite_focus=true#step:7:55)) at io.c(823) [sender=3.2.3]
self-hosted
runnerIts possible to add an option so we can use a ssh key with password?
I have an error when setting my configuration option (like I would do in CLI):
- name: Deploy
uses: deployphp/action@v1
with:
dep: deploy production -o hostname="${{ secrets.PRODUCTION_HOSTNAME }}" -o remote_user="${{ secrets.PRODUCTION_REMOTE_USER }}" -o bin/php="${{ secrets.PRODUCTION_PHP_BIN }}" -o writable_mode="${{ secrets.PRODUCTION_WRITABLE_MODE }}" -o http_user="{{remote_user}}" --tag="${{ github.event.release.tag_name }}"
private-key: ${{ secrets.HOST_SSH_KEY }}
Note the issue disappear when I remove all the quotes. I use them generically in case there is a keyboard space in the path but I think it should be escaped. If it is too complicated, maybe setting cli arguments in inputs would be cleaner btw:
- name: Deploy
uses: deployphp/action@v1
with:
dep: deploy production
private-key: ${{ secrets.HOST_SSH_KEY }}
option: |
hostname: ${{ secrets.PRODUCTION_HOSTNAME }}
writable_mode: ${{ secrets.PRODUCTION_WRITABLE_MODE }}
whatever-key: 'what_ever_value'
tag: ${{ github.event.release.tag_name }}
revision: 'custom_revision'
branch: 'custom_branch'
limit: 12
no-hooks: true
plan: true
start-from: START-FROM
log: LOG
profile: PROFILE
file: 'recipe_file_path'
Node 12 has been out of support since April 2022, as a result Github have started the deprecation process of Node 12 for GitHub Actions.
This action needs to be updated.
Hi peeps.!
Many thanks to you all for making and maintaining Deployer.
Just a quick question here. Is it possible to just use GitHub Actions' native run
to run Deployer as opposed to using this action?
I'm trying to understand the purpose of this action vs the above, as assuming I have dealt with SSH authentication in my workflow, does this action offer any benefits?
Ta
My workflow steps look like this:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
- name: Prepare .env
run: echo $ENV_FILE >> ~/.env
env:
ENV_FILE: ${{ secrets.ENV_FILE }}
- name: Deploy
uses: deployphp/action@v1
with:
private-key: ${{ secrets.PRIVATE_KEY }}
dep: deploy -vvv
But it couldn't deploy
Run deployphp/action@v1
with:
private-key: ***
dep: deploy -vvv
Downloading "https://deployer.org/deployer.phar".
[localhost] > git rev-parse --abbrev-ref HEAD
[localhost] < HEAD
✈︎ Deploying HEAD on x.x.x.x
• done on [x.x.x.x]
➤ Executing task deploy:prepare
[x.x.x.x] > echo $0
[x.x.x.x] < ssh multiplexing initialization
[x.x.x.x] < Permission denied, please try again.
[x.x.x.x] < Permission denied, please try again.
[x.x.x.x] < [email protected]: Permission denied (publickey,password).
➤ Executing task deploy:failed
• done on [x.x.x.x]
✔ Ok [0ms]
➤ Executing task deploy:unlock
[x.x.x.x] > rm -f ~/app/.dep/deploy.lock
[x.x.x.x] < ssh multiplexing initialization
[x.x.x.x] < Permission denied, please try again.
[x.x.x.x] < Permission denied, please try again.
[x.x.x.x] < [email protected]: Permission denied (publickey,password).
In Client.php line 103:
[Deployer\Exception\RuntimeException (-1)]
The command "rm -f ~/app/.dep/deploy.lock" failed.
Exit Code: -1 (Unknown error)
Host Name: x.x.x.x
================
Permission denied, please try again.
Permission denied, please try again.
[email protected]: Permission denied (publickey,password).
I can see it tries to connect as [email protected]
, but my deploy.php
has another user
host('x.x.x.x')
->set('remote_user', 'user')
->set('deploy_path', '~/{{application}}');
Any ideas? Thanks
Hello,
When not using known_hosts secret, action attempts to add this onto the ssh_config file:
fs.appendFileSync(`/etc/ssh/ssh_config`, `StrictHostKeyChecking no`)
However this makes the action fail with the error:
Error: EACCES: permission denied, open '/etc/ssh/ssh_config'
When adding known keys to the action, this does not run so does not error out.
hi,
it fails for both git and https url. What am I supposed to put into set('repository', ) for it to work?
fatal: could not read Username for '
https://github.com/': No such device or
address
thx
Output when it randomly fails, without proper debugging info (using -vvv)
2021-08-31T08:34:15.4531783Z ##[group]Run deployphp/action@master
2021-08-31T08:34:15.4533452Z with:
2021-08-31T08:34:15.4587951Z private-key: ***
2021-08-31T08:34:15.4602740Z known-hosts: ***
2021-08-31T08:34:15.4604557Z dep: deploy devweb1 -f ./.github/deploy.yml -vvv
2021-08-31T08:34:15.4606300Z env:
2021-08-31T08:34:15.4608143Z repo_url: https://github.com/organization/repo
2021-08-31T08:34:15.4610591Z assets_artifact_name: deploy-develop-#138-assets
2021-08-31T08:34:15.4612374Z ##[endgroup]
2021-08-31T08:34:16.5438689Z ##[error]Command failed with exit code 1: vendor/bin/dep deploy devweb1 -f ./.github/deploy.yml -vvv
Job
deploy-web1:
name: deploy web1
runs-on: ubuntu-20.04
needs: build
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
tools: composer:v2
- name: Checkout Repository
uses: actions/checkout@v2
- name: Create .env file
run: |
printf "${{ secrets.DOT_ENV_DEVELOP }}" >> ./.env
- name: Set up cache directory for Composer
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Use cache directory for Composer
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install Composer Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Download compiled assets
uses: actions/download-artifact@v2
with:
name: ${{ env.assets_artifact_name }}
path: public
- name: Move Deployer Binary
run: |
mv ./.github/deployer.phar ./vendor/bin/dep
chmod +x ./vendor/bin/dep
- name: Run Deployer
uses: deployphp/action@master
with:
private-key: ${{ secrets.SSH_PRIVATE_KEY_WEB1 }}
known-hosts: ${{ secrets.SSH_KNOWN_HOSTS_WEB1 }}
dep: deploy devweb1 -f ./.github/deploy.yml -vvv
.github/deploy.yml
import:
- recipe/laravel.php
- contrib/rsync.php
- contrib/php-fpm.php
config:
application: repo
repository: [email protected]:organization/repo.git
php_fpm_version: 7.4
shared_files: []
hosts:
devweb1:
stage: develop
hostname: 'ip_address_1'
rsync_src: ./../
rsync_dest: '{{release_path}}'
deploy_path: /var/web/ssh_username/repo
remote_user: ssh_username
ssh_multiplexing: false
ssh_type: native
port: 22
devweb2:
stage: develop
hostname: 'ip_address_2'
rsync_src: ./../
rsync_dest: '{{release_path}}'
deploy_path: /var/web/ssh_username/repo
remote_user: ssh_username
ssh_multiplexing: false
ssh_type: native
port: 22
tasks:
deploy:
- deploy:info
- deploy:setup
- deploy:lock
- deploy:release
- git:clone
- rsync
- deploy:shared
- deploy:writable
- deploy:vendors
- artisan:key:generate
- artisan:storage:link
- artisan:migrate
# # TODO: Remove anonymous functions to enable caching.
# - artisan:config:cache
# - artisan:route:cache
- artisan:view:cache
- deploy:symlink
- deploy:unlock
- deploy:cleanup
- deploy:success
- php-fpm:reload
git:clone:
script:
- 'cd {{release_path}}'
- 'git clone -b develop {{repository}} .'
after:
deploy:failed: deploy:unlock
What is it that this action actually does? What's the end result? Are any normal steps to deploying affected, or does this deploy when Git receives a push?
I may just be suffering from not enough coffee on a Monday morning, but I'm struggling to see in the code what's going to happen...
Deployer 7.3.1 is missing in the manifest file when using the deployer-version
option:
https://deployer.org/manifest.json
Also, this error is not triggered:
Lines 97 to 99 in 06aeb29
Here is the result:
...
{
"name": "deployer.phar",
"sha1": "7fc18128545bebaa13fc7f3daa79b3e1fa67fd1e",
"url": "https:\/\/github.com\/deployphp\/deployer\/releases\/download\/v7.3.0\/deployer.phar",
"version": "7.3.0"
}
]
100 29938 100 29938 0 0 32587 0 --:--:-- --:--:-- --:--:-- 32576
$ curl -LO undefined
curl: Remote file name has no length!
curl: (23) Failed writing received data to disk/application
Downloading "undefined".
Error: curl: Remote file name has no length!
If I run the deploy command with optional input values, I get always the error Too many arguments, expected arguments "command" "stage".
If I run this command from my local machine, everything works fine.
This is my configuration
- name: Deploy website
uses: deployphp/[email protected]
with:
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
dep: deploy ${{ steps.extract-branch.outputs.branch }} --composer_auth '${{ env.composer_auth }}'
And this is in my PHP file:
use Symfony\Component\Console\Input\InputOption;
option('composer_auth', null, InputOption::VALUE_OPTIONAL, 'Add a composer authentification configuration');
It's great to see a deployer action, but I can't get it to work.
There's also no clear indication of which repo version to use (main repo + action repo).
I almost had it working on the 6.8 version, but then the repo didn't have a proper import for Rsync.
So then I updated to "deployer/deployer": "dev-master"
Now I'm able to properly import Rsync (php), but I keep getting the following error:
Command failed with exit code 255: vendor/bin/dep deploy develop -f ./.github/deploy.php -vvv
This error occurs right away, when the action gets triggered.
No debug info whatsoever, regardless of the -vvv
flag.
The deployment script has worked before, even with proper -vvv debugging.
What's going on??
Is it possible to point directory where application that uses Deployer is located (basically monorepos)?
Hi
I'm just trying out deployer v7 with github actions and I get always this error:
I couldn't find anything about this error, does anybody have a hint?
the host section of my deploy.php looks like this:
`<?php
namespace Deployer;
require_once DIR . '/vendor/deployer/deployer/recipe/common.php';
require_once DIR . '/vendor/deployer/deployer/contrib/rsync.php';
host('******')
->set('stage', 'live')
->set('remote_user', '')
->set('port', ****)
->set('deploy_path', '/***********/');`
Hello !
When i want to deploy i 'have this error
`Run deployphp/action@v1
Using "deployer.phar".
[localhost] > git rev-parse --abbrev-ref HEAD
[localhost] < ci
✈︎ Deploying tag develop on preprod
• done on [preprod]
➤ Executing task deploy:prepare
[preprod] > echo $0
[preprod] < Warning: Permanently added 'host,ip' (ECDSA) to the list of known hosts.
[preprod] < Permission denied, please try again.
[preprod] < Permission denied, please try again.
[preprod] < user@host: Permission denied (publickey,password).
➤ Executing task deploy:failed
• done on [preprod]
✔ Ok [1ms]
➤ Executing task deploy:unlock
[preprod] > rm -f /var/www/app/.dep/deploy.lock
[preprod] < Permission denied, please try again.
[preprod] < Permission denied, please try again.
[preprod] < user@host: Permission denied (publickey,password).
In Client.php line 103:
[Deployer\Exception\RuntimeException (-1)]
The command "rm -f /var/www/app/.dep/deploy.lock" failed.
Exit Code: -1 (Unknown error)
Host Name: preprod
================
Permission denied, please try again.
Permission denied, please try again.
user@host: Permission denied (publickey,password).`
my conf
`name: Deploy staging
on:
push:
branches:
- ci
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
- name: Deploy on staging
uses: deployphp/action@v1
with:
private-key: ${{ secrets.PRIVATE_KEY }}
dep: deploy preprod --tag=develop -vvv
`
I used deployer 6.8.0
can you help me please ?
Run deployphp/action@v1
Downloading "https://github.com/deployphp/deployer/releases/download/v7.0.0-rc.3/deployer.phar".
<?xml version="1.0" encoding="utf-8"?><Error><Code>ServerBusy</Code><Message>Egress is over the account limit.
RequestId:8d55cc58-a01e-0002-4b30-ec9cdd000000
Time:2021-12-08T12:36:34.5427639Z</Message></Error>
Yet the build never died/quit - https://github.com/iBotPeaches/LeafApp_Infinite/runs/4457167451?check_suite_focus=true
I've double-checked that my SSH credentials are correct, I've confirmed that I can successfully log in to my server with ssh <user@host> -p 22
, I've searched the error message loads of time with seemingly no match, but no matter what I try I can't seem to get GitHub Actions working with Deployer.
What I have noticed is that the deploy
stage seems to take 4 mins for the error message to appear, and then another ~4 mins or so for the cleanup job to finish so that GitHub Actions actually marks it as failed. There's also pretty much nothing of the deploy stage in the GitHub Actions output despite the fact that I'm using deploy -vvv
.
Here is my .git/workflows/deploy-on-push.yml
:
name: Deployer
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy to production
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
- name: Install Dependencies
run: composer install -o -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Deploy
uses: deployphp/action@v1
with:
private-key: ${{ secrets.DEPLOYER_KEY }}
known-hosts: ${{ secrets.KNOWN_HOSTS }}
dep: ssh -vvv
deployer-version: "7.0.0"
Here is the raw (and relatively short) log file when running with dep: deploy -vvv
:
Why is GitHub Action with Deployer failing?
2022-03-29T00:53:15.2060751Z Requested labels: ubuntu-latest
2022-03-29T00:53:15.2060812Z Job defined at: Kaos-Industries/rapidradiocodes/.github/workflows/deploy_on_push.yml@refs/heads/master
2022-03-29T00:53:15.2060836Z Waiting for a runner to pick up this job...
2022-03-29T00:53:15.5135005Z Job is waiting for a hosted runner to come online.
2022-03-29T00:53:20.9866723Z Job is about to start running on the hosted runner: Hosted Agent (hosted)
2022-03-29T00:53:24.2014269Z Current runner version: '2.289.1'
2022-03-29T00:53:24.2052041Z ##[group]Operating System
2022-03-29T00:53:24.2053170Z Ubuntu
2022-03-29T00:53:24.2053944Z 20.04.4
2022-03-29T00:53:24.2054683Z LTS
2022-03-29T00:53:24.2055482Z ##[endgroup]
2022-03-29T00:53:24.2056276Z ##[group]Virtual Environment
2022-03-29T00:53:24.2057130Z Environment: ubuntu-20.04
2022-03-29T00:53:24.2057978Z Version: 20220227.1
2022-03-29T00:53:24.2059951Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20220227.1/images/linux/Ubuntu2004-Readme.md
2022-03-29T00:53:24.2062088Z Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20220227.1
2022-03-29T00:53:24.2063235Z ##[endgroup]
2022-03-29T00:53:24.2064213Z ##[group]Virtual Environment Provisioner
2022-03-29T00:53:24.2065609Z 1.0.0.0-main-20220307-1
2022-03-29T00:53:24.2066837Z ##[endgroup]
2022-03-29T00:53:24.2069358Z ##[group]GITHUB_TOKEN Permissions
2022-03-29T00:53:24.2070541Z Actions: write
2022-03-29T00:53:24.2071551Z Checks: write
2022-03-29T00:53:24.2072397Z Contents: write
2022-03-29T00:53:24.2073207Z Deployments: write
2022-03-29T00:53:24.2074025Z Discussions: write
2022-03-29T00:53:24.2074777Z Issues: write
2022-03-29T00:53:24.2075585Z Metadata: read
2022-03-29T00:53:24.2076355Z Packages: write
2022-03-29T00:53:24.2077177Z Pages: write
2022-03-29T00:53:24.2077967Z PullRequests: write
2022-03-29T00:53:24.2078786Z RepositoryProjects: write
2022-03-29T00:53:24.2079655Z SecurityEvents: write
2022-03-29T00:53:24.2080411Z Statuses: write
2022-03-29T00:53:24.2081242Z ##[endgroup]
2022-03-29T00:53:24.2085777Z Secret source: Actions
2022-03-29T00:53:24.2086804Z Prepare workflow directory
2022-03-29T00:53:24.2974539Z Prepare all required actions
2022-03-29T00:53:24.3164701Z Getting action download info
2022-03-29T00:53:24.5214532Z Download action repository 'actions/checkout@v2' (SHA:ec3a7ce113134d7a93b817d10a8272cb61118579)
2022-03-29T00:53:25.2334633Z Download action repository 'shivammathur/setup-php@v2' (SHA:d37cc3048580de06099c81ded417530716a0d7ab)
2022-03-29T00:53:25.7494400Z Download action repository 'deployphp/action@master' (SHA:0bf91d3ad51b25ed6a44977ce2411282c451b955)
2022-03-29T00:53:26.5097032Z ##[group]Run actions/checkout@v2
2022-03-29T00:53:26.5097989Z with:
2022-03-29T00:53:26.5098738Z repository: Kaos-Industries/rapidradiocodes
2022-03-29T00:53:26.5099876Z token: ***
2022-03-29T00:53:26.5100622Z ssh-strict: true
2022-03-29T00:53:26.5101323Z persist-credentials: true
2022-03-29T00:53:26.5102046Z clean: true
2022-03-29T00:53:26.5102680Z fetch-depth: 1
2022-03-29T00:53:26.5103414Z lfs: false
2022-03-29T00:53:26.5104111Z submodules: false
2022-03-29T00:53:26.5104752Z ##[endgroup]
2022-03-29T00:53:26.7593312Z Syncing repository: Kaos-Industries/rapidradiocodes
2022-03-29T00:53:26.7598039Z ##[group]Getting Git version info
2022-03-29T00:53:26.7599466Z Working directory is '/home/runner/work/rapidradiocodes/rapidradiocodes'
2022-03-29T00:53:26.7600929Z [command]/usr/bin/git version
2022-03-29T00:53:26.7651772Z git version 2.35.1
2022-03-29T00:53:26.7654073Z ##[endgroup]
2022-03-29T00:53:26.7657958Z Deleting the contents of '/home/runner/work/rapidradiocodes/rapidradiocodes'
2022-03-29T00:53:26.7664374Z ##[group]Initializing the repository
2022-03-29T00:53:26.7669336Z [command]/usr/bin/git init /home/runner/work/rapidradiocodes/rapidradiocodes
2022-03-29T00:53:26.7740464Z hint: Using 'master' as the name for the initial branch. This default branch name
2022-03-29T00:53:26.7742047Z hint: is subject to change. To configure the initial branch name to use in all
2022-03-29T00:53:26.7743359Z hint: of your new repositories, which will suppress this warning, call:
2022-03-29T00:53:26.7744385Z hint:
2022-03-29T00:53:26.7745465Z hint: git config --global init.defaultBranch <name>
2022-03-29T00:53:26.7746421Z hint:
2022-03-29T00:53:26.7747457Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2022-03-29T00:53:26.7872908Z hint: 'development'. The just-created branch can be renamed via this command:
2022-03-29T00:53:26.7873978Z hint:
2022-03-29T00:53:26.7876961Z hint: git branch -m <name>
2022-03-29T00:53:26.7877651Z Initialized empty Git repository in /home/runner/work/rapidradiocodes/rapidradiocodes/.git/
2022-03-29T00:53:26.7878614Z [command]/usr/bin/git remote add origin https://github.com/Kaos-Industries/rapidradiocodes
2022-03-29T00:53:26.7879813Z ##[endgroup]
2022-03-29T00:53:26.7880631Z ##[group]Disabling automatic garbage collection
2022-03-29T00:53:26.7881301Z [command]/usr/bin/git config --local gc.auto 0
2022-03-29T00:53:26.7917009Z ##[endgroup]
2022-03-29T00:53:26.7961636Z ##[group]Setting up auth
2022-03-29T00:53:26.7984439Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2022-03-29T00:53:26.8037582Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2022-03-29T00:53:26.8416785Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2022-03-29T00:53:26.8452550Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2022-03-29T00:53:26.8697541Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2022-03-29T00:53:26.8742784Z ##[endgroup]
2022-03-29T00:53:26.8743690Z ##[group]Fetching the repository
2022-03-29T00:53:26.8755429Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +38314fcf4b7d8647e337c68bb1f214561306bbdc:refs/remotes/origin/master
2022-03-29T00:53:27.2436130Z remote: Enumerating objects: 299, done.
2022-03-29T00:53:27.2504753Z remote: Counting objects: 0% (1/299)
2022-03-29T00:53:27.2505663Z remote: Counting objects: 1% (3/299)
2022-03-29T00:53:27.2506614Z remote: Counting objects: 2% (6/299)
2022-03-29T00:53:27.2507483Z remote: Counting objects: 3% (9/299)
2022-03-29T00:53:27.2508781Z remote: Counting objects: 4% (12/299)
2022-03-29T00:53:27.2509673Z remote: Counting objects: 5% (15/299)
2022-03-29T00:53:27.2510414Z remote: Counting objects: 6% (18/299)
2022-03-29T00:53:27.2511256Z remote: Counting objects: 7% (21/299)
2022-03-29T00:53:27.2512089Z remote: Counting objects: 8% (24/299)
2022-03-29T00:53:27.2512925Z remote: Counting objects: 9% (27/299)
2022-03-29T00:53:27.2513758Z remote: Counting objects: 10% (30/299)
2022-03-29T00:53:27.2514576Z remote: Counting objects: 11% (33/299)
2022-03-29T00:53:27.2515360Z remote: Counting objects: 12% (36/299)
2022-03-29T00:53:27.2516299Z remote: Counting objects: 13% (39/299)
2022-03-29T00:53:27.2517128Z remote: Counting objects: 14% (42/299)
2022-03-29T00:53:27.2518002Z remote: Counting objects: 15% (45/299)
2022-03-29T00:53:27.2518852Z remote: Counting objects: 16% (48/299)
2022-03-29T00:53:27.2519687Z remote: Counting objects: 17% (51/299)
2022-03-29T00:53:27.2520519Z remote: Counting objects: 18% (54/299)
2022-03-29T00:53:27.2521343Z remote: Counting objects: 19% (57/299)
2022-03-29T00:53:27.2522180Z remote: Counting objects: 20% (60/299)
2022-03-29T00:53:27.2523018Z remote: Counting objects: 21% (63/299)
2022-03-29T00:53:27.2523837Z remote: Counting objects: 22% (66/299)
2022-03-29T00:53:27.2524703Z remote: Counting objects: 23% (69/299)
2022-03-29T00:53:27.2525533Z remote: Counting objects: 24% (72/299)
2022-03-29T00:53:27.2527172Z remote: Counting objects: 25% (75/299)
2022-03-29T00:53:27.2527979Z remote: Counting objects: 26% (78/299)
2022-03-29T00:53:27.2528696Z remote: Counting objects: 27% (81/299)
2022-03-29T00:53:27.2529607Z remote: Counting objects: 28% (84/299)
2022-03-29T00:53:27.2530726Z remote: Counting objects: 29% (87/299)
2022-03-29T00:53:27.2531429Z remote: Counting objects: 30% (90/299)
2022-03-29T00:53:27.2532164Z remote: Counting objects: 31% (93/299)
2022-03-29T00:53:27.2532890Z remote: Counting objects: 32% (96/299)
2022-03-29T00:53:27.2533601Z remote: Counting objects: 33% (99/299)
2022-03-29T00:53:27.2534330Z remote: Counting objects: 34% (102/299)
2022-03-29T00:53:27.2535048Z remote: Counting objects: 35% (105/299)
2022-03-29T00:53:27.2535786Z remote: Counting objects: 36% (108/299)
2022-03-29T00:53:27.2536516Z remote: Counting objects: 37% (111/299)
2022-03-29T00:53:27.2537224Z remote: Counting objects: 38% (114/299)
2022-03-29T00:53:27.2537964Z remote: Counting objects: 39% (117/299)
2022-03-29T00:53:27.2538682Z remote: Counting objects: 40% (120/299)
2022-03-29T00:53:27.2539397Z remote: Counting objects: 41% (123/299)
2022-03-29T00:53:27.2540130Z remote: Counting objects: 42% (126/299)
2022-03-29T00:53:27.2540839Z remote: Counting objects: 43% (129/299)
2022-03-29T00:53:27.2541578Z remote: Counting objects: 44% (132/299)
2022-03-29T00:53:27.2542325Z remote: Counting objects: 45% (135/299)
2022-03-29T00:53:27.2543024Z remote: Counting objects: 46% (138/299)
2022-03-29T00:53:27.2543757Z remote: Counting objects: 47% (141/299)
2022-03-29T00:53:27.2544481Z remote: Counting objects: 48% (144/299)
2022-03-29T00:53:27.2545206Z remote: Counting objects: 49% (147/299)
2022-03-29T00:53:27.2545954Z remote: Counting objects: 50% (150/299)
2022-03-29T00:53:27.2546664Z remote: Counting objects: 51% (153/299)
2022-03-29T00:53:27.2547406Z remote: Counting objects: 52% (156/299)
2022-03-29T00:53:27.2548160Z remote: Counting objects: 53% (159/299)
2022-03-29T00:53:27.2548879Z remote: Counting objects: 54% (162/299)
2022-03-29T00:53:27.2549612Z remote: Counting objects: 55% (165/299)
2022-03-29T00:53:27.2550355Z remote: Counting objects: 56% (168/299)
2022-03-29T00:53:27.2551294Z remote: Counting objects: 57% (171/299)
2022-03-29T00:53:27.2552053Z remote: Counting objects: 58% (174/299)
2022-03-29T00:53:27.2552757Z remote: Counting objects: 59% (177/299)
2022-03-29T00:53:27.2553483Z remote: Counting objects: 60% (180/299)
2022-03-29T00:53:27.2554202Z remote: Counting objects: 61% (183/299)
2022-03-29T00:53:27.2554903Z remote: Counting objects: 62% (186/299)
2022-03-29T00:53:27.2555641Z remote: Counting objects: 63% (189/299)
2022-03-29T00:53:27.2556375Z remote: Counting objects: 64% (192/299)
2022-03-29T00:53:27.2557327Z remote: Counting objects: 65% (195/299)
2022-03-29T00:53:27.2558048Z remote: Counting objects: 66% (198/299)
2022-03-29T00:53:27.2558771Z remote: Counting objects: 67% (201/299)
2022-03-29T00:53:27.2559472Z remote: Counting objects: 68% (204/299)
2022-03-29T00:53:27.2560208Z remote: Counting objects: 69% (207/299)
2022-03-29T00:53:27.2560951Z remote: Counting objects: 70% (210/299)
2022-03-29T00:53:27.2561694Z remote: Counting objects: 71% (213/299)
2022-03-29T00:53:27.2562421Z remote: Counting objects: 72% (216/299)
2022-03-29T00:53:27.2563129Z remote: Counting objects: 73% (219/299)
2022-03-29T00:53:27.2563822Z remote: Counting objects: 74% (222/299)
2022-03-29T00:53:27.2564550Z remote: Counting objects: 75% (225/299)
2022-03-29T00:53:27.2565255Z remote: Counting objects: 76% (228/299)
2022-03-29T00:53:27.2565984Z remote: Counting objects: 77% (231/299)
2022-03-29T00:53:27.2566703Z remote: Counting objects: 78% (234/299)
2022-03-29T00:53:27.2567402Z remote: Counting objects: 79% (237/299)
2022-03-29T00:53:27.2568119Z remote: Counting objects: 80% (240/299)
2022-03-29T00:53:27.2568839Z remote: Counting objects: 81% (243/299)
2022-03-29T00:53:27.2570620Z remote: Counting objects: 82% (246/299)
2022-03-29T00:53:27.2571387Z remote: Counting objects: 83% (249/299)
2022-03-29T00:53:27.2572100Z remote: Counting objects: 84% (252/299)
2022-03-29T00:53:27.2572823Z remote: Counting objects: 85% (255/299)
2022-03-29T00:53:27.2573778Z remote: Counting objects: 86% (258/299)
2022-03-29T00:53:27.2574483Z remote: Counting objects: 87% (261/299)
2022-03-29T00:53:27.2575201Z remote: Counting objects: 88% (264/299)
2022-03-29T00:53:27.2575922Z remote: Counting objects: 89% (267/299)
2022-03-29T00:53:27.2576629Z remote: Counting objects: 90% (270/299)
2022-03-29T00:53:27.2577353Z remote: Counting objects: 91% (273/299)
2022-03-29T00:53:27.2578068Z remote: Counting objects: 92% (276/299)
2022-03-29T00:53:27.2578781Z remote: Counting objects: 93% (279/299)
2022-03-29T00:53:27.2579514Z remote: Counting objects: 94% (282/299)
2022-03-29T00:53:27.2580225Z remote: Counting objects: 95% (285/299)
2022-03-29T00:53:27.2580956Z remote: Counting objects: 96% (288/299)
2022-03-29T00:53:27.2581693Z remote: Counting objects: 97% (291/299)
2022-03-29T00:53:27.2582397Z remote: Counting objects: 98% (294/299)
2022-03-29T00:53:27.2583108Z remote: Counting objects: 99% (297/299)
2022-03-29T00:53:27.2583827Z remote: Counting objects: 100% (299/299)
2022-03-29T00:53:27.2584553Z remote: Counting objects: 100% (299/299), done.
2022-03-29T00:53:27.2585324Z remote: Compressing objects: 0% (1/248)
2022-03-29T00:53:27.2586055Z remote: Compressing objects: 1% (3/248)
2022-03-29T00:53:27.2586790Z remote: Compressing objects: 2% (5/248)
2022-03-29T00:53:27.2587523Z remote: Compressing objects: 3% (8/248)
2022-03-29T00:53:27.2588245Z remote: Compressing objects: 4% (10/248)
2022-03-29T00:53:27.2588982Z remote: Compressing objects: 5% (13/248)
2022-03-29T00:53:27.2589718Z remote: Compressing objects: 6% (15/248)
2022-03-29T00:53:27.2590733Z remote: Compressing objects: 7% (18/248)
2022-03-29T00:53:27.2591496Z remote: Compressing objects: 8% (20/248)
2022-03-29T00:53:27.2592220Z remote: Compressing objects: 9% (23/248)
2022-03-29T00:53:27.2592956Z remote: Compressing objects: 10% (25/248)
2022-03-29T00:53:27.2593683Z remote: Compressing objects: 11% (28/248)
2022-03-29T00:53:27.2594415Z remote: Compressing objects: 12% (30/248)
2022-03-29T00:53:27.2595151Z remote: Compressing objects: 13% (33/248)
2022-03-29T00:53:27.2595893Z remote: Compressing objects: 14% (35/248)
2022-03-29T00:53:27.2596656Z remote: Compressing objects: 15% (38/248)
2022-03-29T00:53:27.2597391Z remote: Compressing objects: 16% (40/248)
2022-03-29T00:53:27.2598120Z remote: Compressing objects: 17% (43/248)
2022-03-29T00:53:27.2598838Z remote: Compressing objects: 18% (45/248)
2022-03-29T00:53:27.2599564Z remote: Compressing objects: 19% (48/248)
2022-03-29T00:53:27.2600280Z remote: Compressing objects: 20% (50/248)
2022-03-29T00:53:27.2601010Z remote: Compressing objects: 21% (53/248)
2022-03-29T00:53:27.2601744Z remote: Compressing objects: 22% (55/248)
2022-03-29T00:53:27.2602457Z remote: Compressing objects: 23% (58/248)
2022-03-29T00:53:27.2603184Z remote: Compressing objects: 24% (60/248)
2022-03-29T00:53:27.2603916Z remote: Compressing objects: 25% (62/248)
2022-03-29T00:53:27.2604629Z remote: Compressing objects: 26% (65/248)
2022-03-29T00:53:27.2660506Z remote: Compressing objects: 27% (67/248)
2022-03-29T00:53:27.2661342Z remote: Compressing objects: 28% (70/248)
2022-03-29T00:53:27.2662127Z remote: Compressing objects: 29% (72/248)
2022-03-29T00:53:27.2662854Z remote: Compressing objects: 30% (75/248)
2022-03-29T00:53:27.2663565Z remote: Compressing objects: 31% (77/248)
2022-03-29T00:53:27.2664634Z remote: Compressing objects: 32% (80/248)
2022-03-29T00:53:27.2665369Z remote: Compressing objects: 33% (82/248)
2022-03-29T00:53:27.2666084Z remote: Compressing objects: 34% (85/248)
2022-03-29T00:53:27.2666807Z remote: Compressing objects: 35% (87/248)
2022-03-29T00:53:27.2667519Z remote: Compressing objects: 36% (90/248)
2022-03-29T00:53:27.2668238Z remote: Compressing objects: 37% (92/248)
2022-03-29T00:53:27.2668962Z remote: Compressing objects: 38% (95/248)
2022-03-29T00:53:27.2669680Z remote: Compressing objects: 39% (97/248)
2022-03-29T00:53:27.2670407Z remote: Compressing objects: 40% (100/248)
2022-03-29T00:53:27.2671146Z remote: Compressing objects: 41% (102/248)
2022-03-29T00:53:27.2674152Z remote: Compressing objects: 42% (105/248)
2022-03-29T00:53:27.2674840Z remote: Compressing objects: 43% (107/248)
2022-03-29T00:53:27.2675515Z remote: Compressing objects: 44% (110/248)
2022-03-29T00:53:27.2676160Z remote: Compressing objects: 45% (112/248)
2022-03-29T00:53:27.2676825Z remote: Compressing objects: 46% (115/248)
2022-03-29T00:53:27.2677472Z remote: Compressing objects: 47% (117/248)
2022-03-29T00:53:27.2678127Z remote: Compressing objects: 48% (120/248)
2022-03-29T00:53:27.2678898Z remote: Compressing objects: 49% (122/248)
2022-03-29T00:53:27.2679620Z remote: Compressing objects: 50% (124/248)
2022-03-29T00:53:27.2680348Z remote: Compressing objects: 51% (127/248)
2022-03-29T00:53:27.2681074Z remote: Compressing objects: 52% (129/248)
2022-03-29T00:53:27.2681782Z remote: Compressing objects: 53% (132/248)
2022-03-29T00:53:27.2682511Z remote: Compressing objects: 54% (134/248)
2022-03-29T00:53:27.2683222Z remote: Compressing objects: 55% (137/248)
2022-03-29T00:53:27.2683954Z remote: Compressing objects: 56% (139/248)
2022-03-29T00:53:27.2684680Z remote: Compressing objects: 57% (142/248)
2022-03-29T00:53:27.2694737Z remote: Compressing objects: 58% (144/248)
2022-03-29T00:53:27.2811538Z remote: Compressing objects: 59% (147/248)
2022-03-29T00:53:27.2997730Z remote: Compressing objects: 60% (149/248)
2022-03-29T00:53:27.2998384Z remote: Compressing objects: 61% (152/248)
2022-03-29T00:53:27.2998984Z remote: Compressing objects: 62% (154/248)
2022-03-29T00:53:27.2999590Z remote: Compressing objects: 63% (157/248)
2022-03-29T00:53:27.3000164Z remote: Compressing objects: 64% (159/248)
2022-03-29T00:53:27.3000753Z remote: Compressing objects: 65% (162/248)
2022-03-29T00:53:27.3001327Z remote: Compressing objects: 66% (164/248)
2022-03-29T00:53:27.3002173Z remote: Compressing objects: 67% (167/248)
2022-03-29T00:53:27.3002803Z remote: Compressing objects: 68% (169/248)
2022-03-29T00:53:27.3003395Z remote: Compressing objects: 69% (172/248)
2022-03-29T00:53:27.3003997Z remote: Compressing objects: 70% (174/248)
2022-03-29T00:53:27.3004585Z remote: Compressing objects: 71% (177/248)
2022-03-29T00:53:27.3005169Z remote: Compressing objects: 72% (179/248)
2022-03-29T00:53:27.3005744Z remote: Compressing objects: 73% (182/248)
2022-03-29T00:53:27.3006325Z remote: Compressing objects: 74% (184/248)
2022-03-29T00:53:27.3006913Z remote: Compressing objects: 75% (186/248)
2022-03-29T00:53:27.3007487Z remote: Compressing objects: 76% (189/248)
2022-03-29T00:53:27.3008077Z remote: Compressing objects: 77% (191/248)
2022-03-29T00:53:27.3008645Z remote: Compressing objects: 78% (194/248)
2022-03-29T00:53:27.3009228Z remote: Compressing objects: 79% (196/248)
2022-03-29T00:53:27.3009944Z remote: Compressing objects: 80% (199/248)
2022-03-29T00:53:27.3010530Z remote: Compressing objects: 81% (201/248)
2022-03-29T00:53:27.3011357Z remote: Compressing objects: 82% (204/248)
2022-03-29T00:53:27.3011931Z remote: Compressing objects: 83% (206/248)
2022-03-29T00:53:27.3012522Z remote: Compressing objects: 84% (209/248)
2022-03-29T00:53:27.3013092Z remote: Compressing objects: 85% (211/248)
2022-03-29T00:53:27.3013684Z remote: Compressing objects: 86% (214/248)
2022-03-29T00:53:27.3014272Z remote: Compressing objects: 87% (216/248)
2022-03-29T00:53:27.3014842Z remote: Compressing objects: 88% (219/248)
2022-03-29T00:53:27.3015425Z remote: Compressing objects: 89% (221/248)
2022-03-29T00:53:27.3015993Z remote: Compressing objects: 90% (224/248)
2022-03-29T00:53:27.3016594Z remote: Compressing objects: 91% (226/248)
2022-03-29T00:53:27.3017180Z remote: Compressing objects: 92% (229/248)
2022-03-29T00:53:27.3017762Z remote: Compressing objects: 93% (231/248)
2022-03-29T00:53:27.3018332Z remote: Compressing objects: 94% (234/248)
2022-03-29T00:53:27.3018924Z remote: Compressing objects: 95% (236/248)
2022-03-29T00:53:27.3019499Z remote: Compressing objects: 96% (239/248)
2022-03-29T00:53:27.3020087Z remote: Compressing objects: 97% (241/248)
2022-03-29T00:53:27.3020658Z remote: Compressing objects: 98% (244/248)
2022-03-29T00:53:27.3021237Z remote: Compressing objects: 99% (246/248)
2022-03-29T00:53:27.3021824Z remote: Compressing objects: 100% (248/248)
2022-03-29T00:53:27.3022418Z remote: Compressing objects: 100% (248/248), done.
2022-03-29T00:53:27.3023002Z Receiving objects: 0% (1/299)
2022-03-29T00:53:27.3023506Z Receiving objects: 1% (3/299)
2022-03-29T00:53:27.3024027Z Receiving objects: 2% (6/299)
2022-03-29T00:53:27.3024964Z Receiving objects: 3% (9/299)
2022-03-29T00:53:27.3026804Z Receiving objects: 4% (12/299)
2022-03-29T00:53:27.3027575Z Receiving objects: 5% (15/299)
2022-03-29T00:53:27.3028226Z Receiving objects: 6% (18/299)
2022-03-29T00:53:27.3028907Z Receiving objects: 7% (21/299)
2022-03-29T00:53:27.3029565Z Receiving objects: 8% (24/299)
2022-03-29T00:53:27.3030435Z Receiving objects: 9% (27/299)
2022-03-29T00:53:27.3031121Z Receiving objects: 10% (30/299)
2022-03-29T00:53:27.3031761Z Receiving objects: 11% (33/299)
2022-03-29T00:53:27.3032817Z Receiving objects: 12% (36/299)
2022-03-29T00:53:27.3033486Z Receiving objects: 13% (39/299)
2022-03-29T00:53:27.3034132Z Receiving objects: 14% (42/299)
2022-03-29T00:53:27.3034801Z Receiving objects: 15% (45/299)
2022-03-29T00:53:27.3035467Z Receiving objects: 16% (48/299)
2022-03-29T00:53:27.3036111Z Receiving objects: 17% (51/299)
2022-03-29T00:53:27.3036777Z Receiving objects: 18% (54/299)
2022-03-29T00:53:27.3038450Z Receiving objects: 19% (57/299)
2022-03-29T00:53:27.3039147Z Receiving objects: 20% (60/299)
2022-03-29T00:53:27.3039815Z Receiving objects: 21% (63/299)
2022-03-29T00:53:27.3307398Z Receiving objects: 22% (66/299)
2022-03-29T00:53:27.3308015Z Receiving objects: 23% (69/299)
2022-03-29T00:53:27.3308567Z Receiving objects: 24% (72/299)
2022-03-29T00:53:27.3357878Z Receiving objects: 25% (75/299)
2022-03-29T00:53:27.3358679Z Receiving objects: 26% (78/299)
2022-03-29T00:53:27.3359259Z Receiving objects: 27% (81/299)
2022-03-29T00:53:27.3359917Z Receiving objects: 28% (84/299)
2022-03-29T00:53:27.3360557Z Receiving objects: 29% (87/299)
2022-03-29T00:53:27.3633294Z Receiving objects: 30% (90/299)
2022-03-29T00:53:27.3633990Z Receiving objects: 31% (93/299)
2022-03-29T00:53:27.3634819Z Receiving objects: 32% (96/299)
2022-03-29T00:53:27.3635561Z Receiving objects: 33% (99/299)
2022-03-29T00:53:27.3677648Z Receiving objects: 34% (102/299)
2022-03-29T00:53:27.3678379Z Receiving objects: 35% (105/299)
2022-03-29T00:53:27.4006908Z Receiving objects: 36% (108/299)
2022-03-29T00:53:27.4007570Z Receiving objects: 37% (111/299)
2022-03-29T00:53:27.4009333Z Receiving objects: 38% (114/299)
2022-03-29T00:53:27.4399652Z Receiving objects: 39% (117/299)
2022-03-29T00:53:27.4432395Z Receiving objects: 40% (120/299)
2022-03-29T00:53:27.4804628Z Receiving objects: 41% (123/299)
2022-03-29T00:53:27.4853701Z Receiving objects: 42% (126/299)
2022-03-29T00:53:27.4882330Z Receiving objects: 43% (129/299)
2022-03-29T00:53:27.4882864Z Receiving objects: 44% (132/299)
2022-03-29T00:53:27.4883451Z Receiving objects: 45% (135/299)
2022-03-29T00:53:27.4910235Z Receiving objects: 46% (138/299)
2022-03-29T00:53:27.4922000Z Receiving objects: 47% (141/299)
2022-03-29T00:53:27.4922538Z Receiving objects: 48% (144/299)
2022-03-29T00:53:27.5155579Z Receiving objects: 49% (147/299)
2022-03-29T00:53:27.5170806Z Receiving objects: 50% (150/299)
2022-03-29T00:53:27.5294863Z Receiving objects: 51% (153/299)
2022-03-29T00:53:27.5295718Z Receiving objects: 52% (156/299)
2022-03-29T00:53:27.5467487Z Receiving objects: 53% (159/299)
2022-03-29T00:53:27.5901918Z Receiving objects: 54% (162/299)
2022-03-29T00:53:27.6109762Z Receiving objects: 55% (165/299)
2022-03-29T00:53:27.6138471Z Receiving objects: 56% (168/299)
2022-03-29T00:53:27.6351852Z Receiving objects: 57% (171/299)
2022-03-29T00:53:27.6369073Z Receiving objects: 58% (174/299)
2022-03-29T00:53:27.6683002Z Receiving objects: 59% (177/299)
2022-03-29T00:53:27.6698702Z Receiving objects: 60% (180/299)
2022-03-29T00:53:27.6839245Z Receiving objects: 61% (183/299)
2022-03-29T00:53:27.6866580Z Receiving objects: 62% (186/299)
2022-03-29T00:53:27.7407941Z Receiving objects: 63% (189/299)
2022-03-29T00:53:27.7509459Z Receiving objects: 64% (192/299)
2022-03-29T00:53:27.9902731Z Receiving objects: 65% (195/299)
2022-03-29T00:53:27.9990183Z Receiving objects: 66% (198/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.0036323Z Receiving objects: 67% (201/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.1162651Z Receiving objects: 68% (204/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.1203411Z Receiving objects: 69% (207/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.1554303Z Receiving objects: 70% (210/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.1644987Z Receiving objects: 71% (213/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.1801261Z Receiving objects: 72% (216/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.1805373Z Receiving objects: 73% (219/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2111299Z Receiving objects: 74% (222/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2112560Z remote: Total 299 (delta 25), reused 285 (delta 24), pack-reused 0
2022-03-29T00:53:28.2122811Z Receiving objects: 75% (225/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2123635Z Receiving objects: 76% (228/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2124792Z Receiving objects: 77% (231/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2126703Z Receiving objects: 78% (234/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2128494Z Receiving objects: 79% (237/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2130136Z Receiving objects: 80% (240/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2131908Z Receiving objects: 81% (243/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2133261Z Receiving objects: 82% (246/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2134937Z Receiving objects: 83% (249/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2135723Z Receiving objects: 84% (252/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2137465Z Receiving objects: 85% (255/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2138270Z Receiving objects: 86% (258/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2140101Z Receiving objects: 87% (261/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2140835Z Receiving objects: 88% (264/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2143762Z Receiving objects: 89% (267/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2145152Z Receiving objects: 90% (270/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2146527Z Receiving objects: 91% (273/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2147220Z Receiving objects: 92% (276/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2148186Z Receiving objects: 93% (279/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2148866Z Receiving objects: 94% (282/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2149536Z Receiving objects: 95% (285/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2150187Z Receiving objects: 96% (288/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2150856Z Receiving objects: 97% (291/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2151505Z Receiving objects: 98% (294/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2152174Z Receiving objects: 99% (297/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2152846Z Receiving objects: 100% (299/299), 17.54 MiB | 35.06 MiB/s
2022-03-29T00:53:28.2153502Z Receiving objects: 100% (299/299), 38.84 MiB | 42.45 MiB/s, done.
2022-03-29T00:53:28.2159125Z Resolving deltas: 0% (0/25)
2022-03-29T00:53:28.2159748Z Resolving deltas: 4% (1/25)
2022-03-29T00:53:28.2160327Z Resolving deltas: 8% (2/25)
2022-03-29T00:53:28.2160920Z Resolving deltas: 12% (3/25)
2022-03-29T00:53:28.2161488Z Resolving deltas: 16% (4/25)
2022-03-29T00:53:28.2162075Z Resolving deltas: 20% (5/25)
2022-03-29T00:53:28.2162667Z Resolving deltas: 24% (6/25)
2022-03-29T00:53:28.2163227Z Resolving deltas: 28% (7/25)
2022-03-29T00:53:28.2163806Z Resolving deltas: 32% (8/25)
2022-03-29T00:53:28.2164388Z Resolving deltas: 36% (9/25)
2022-03-29T00:53:28.2165074Z Resolving deltas: 40% (10/25)
2022-03-29T00:53:28.2165674Z Resolving deltas: 44% (11/25)
2022-03-29T00:53:28.2169627Z Resolving deltas: 48% (12/25)
2022-03-29T00:53:28.2170180Z Resolving deltas: 52% (13/25)
2022-03-29T00:53:28.2170780Z Resolving deltas: 56% (14/25)
2022-03-29T00:53:28.2180246Z Resolving deltas: 60% (15/25)
2022-03-29T00:53:28.2181217Z Resolving deltas: 64% (16/25)
2022-03-29T00:53:28.2181990Z Resolving deltas: 68% (17/25)
2022-03-29T00:53:28.2182838Z Resolving deltas: 72% (18/25)
2022-03-29T00:53:28.2183663Z Resolving deltas: 76% (19/25)
2022-03-29T00:53:28.2184441Z Resolving deltas: 80% (20/25)
2022-03-29T00:53:28.2185255Z Resolving deltas: 84% (21/25)
2022-03-29T00:53:28.2186083Z Resolving deltas: 88% (22/25)
2022-03-29T00:53:28.2187040Z Resolving deltas: 92% (23/25)
2022-03-29T00:53:28.2203460Z Resolving deltas: 96% (24/25)
2022-03-29T00:53:28.2204501Z Resolving deltas: 100% (25/25)
2022-03-29T00:53:28.2205413Z Resolving deltas: 100% (25/25), done.
2022-03-29T00:53:28.2906908Z From https://github.com/Kaos-Industries/rapidradiocodes
2022-03-29T00:53:28.2908268Z * [new ref] 38314fcf4b7d8647e337c68bb1f214561306bbdc -> origin/master
2022-03-29T00:53:28.2935473Z ##[endgroup]
2022-03-29T00:53:28.2937066Z ##[group]Determining the checkout info
2022-03-29T00:53:28.2938653Z ##[endgroup]
2022-03-29T00:53:28.2940006Z ##[group]Checking out the ref
2022-03-29T00:53:28.2966086Z [command]/usr/bin/git checkout --progress --force -B master refs/remotes/origin/master
2022-03-29T00:53:28.5093241Z Reset branch 'master'
2022-03-29T00:53:28.5094011Z branch 'master' set up to track 'origin/master'.
2022-03-29T00:53:28.5120065Z ##[endgroup]
2022-03-29T00:53:28.5152740Z [command]/usr/bin/git log -1 --format='%H'
2022-03-29T00:53:28.5184728Z '38314fcf4b7d8647e337c68bb1f214561306bbdc'
2022-03-29T00:53:28.5485079Z ##[group]Run shivammathur/setup-php@v2
2022-03-29T00:53:28.5485685Z with:
2022-03-29T00:53:28.5486217Z php-version: 8
2022-03-29T00:53:28.5486717Z ini-file: production
2022-03-29T00:53:28.5487234Z ##[endgroup]
2022-03-29T00:53:28.6187968Z [command]/usr/bin/bash /home/runner/work/_actions/shivammathur/setup-php/v2/src/scripts/run.sh
2022-03-29T00:53:28.6288098Z
2022-03-29T00:53:28.6289584Z �[90;1m==> �[0m�[37;1mSetup PHP�[0m
2022-03-29T00:53:28.9651901Z �[32;1m✓ �[0m�[34;1mPHP �[0m�[90;1mSwitched to PHP 8.0.16�[0m
2022-03-29T00:53:28.9662083Z
2022-03-29T00:53:28.9663186Z �[90;1m==> �[0m�[37;1mSetup Tools�[0m
2022-03-29T00:53:29.4774113Z �[32;1m✓ �[0m�[34;1mcomposer �[0m�[90;1mAdded composer 2.2.9�[0m
2022-03-29T00:53:29.4774651Z
2022-03-29T00:53:29.4775260Z �[90;1m==> �[0m�[37;1m#StandWithUkraine�[0m
2022-03-29T00:53:29.4776361Z �[32;1m✓ �[0m�[34;1mread-more �[0m�[90;1mhttps://setup-php.com/support-ukraine�[0m
2022-03-29T00:53:29.4907460Z ##[group]Run composer install -o -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
2022-03-29T00:53:29.4908551Z �[36;1mcomposer install -o -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist�[0m
2022-03-29T00:53:29.4965309Z shell: /usr/bin/bash -e {0}
2022-03-29T00:53:29.4965852Z env:
2022-03-29T00:53:29.4966337Z COMPOSER_PROCESS_TIMEOUT: 0
2022-03-29T00:53:29.4966871Z COMPOSER_NO_INTERACTION: 1
2022-03-29T00:53:29.4967380Z ##[endgroup]
2022-03-29T00:53:30.7276220Z Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
2022-03-29T00:53:35.5121943Z ##[group]Run deployphp/action@master
2022-03-29T00:53:35.5122456Z with:
2022-03-29T00:53:35.5136080Z private-key: ***
2022-03-29T00:53:35.5138680Z known-hosts: ***
2022-03-29T00:53:35.5139162Z dep: deploy -vvv
2022-03-29T00:53:35.5139644Z env:
2022-03-29T00:53:35.5140115Z COMPOSER_PROCESS_TIMEOUT: 0
2022-03-29T00:53:35.5140637Z COMPOSER_NO_INTERACTION: 1
2022-03-29T00:53:35.5141117Z ##[endgroup]
2022-03-29T00:53:35.6568117Z Using "vendor/bin/deployer.phar".
2022-03-29T00:53:36.2458524Z ##[group]task deploy:info
2022-03-29T00:53:36.2468289Z [�[31;1mprod�[39;22m] /usr/bin/php8.0 /home/runner/work/rapidradiocodes/rapidradiocodes/vendor/deployer/deployer/deployer.phar worker --port 43071 --task deploy:info --host prod --ansi --no-interaction --decorated -vvv
2022-03-29T00:53:36.4038877Z [�[31;1mprod�[39;22m] �[32;1minfo�[39;22m deploying �[35;1mHEAD�[39;22m
2022-03-29T00:53:36.4039978Z �[33;1mdone�[39;22m on �[31;1mprod�[39;22m
2022-03-29T00:53:36.4041817Z ##[endgroup]
2022-03-29T00:53:36.4042824Z ##[group]task deploy:setup
2022-03-29T00:53:36.4044350Z [�[31;1mprod�[39;22m] /usr/bin/php8.0 /home/runner/work/rapidradiocodes/rapidradiocodes/vendor/deployer/deployer/deployer.phar worker --port 43071 --task deploy:setup --host prod --ansi --no-interaction --decorated -vvv
2022-03-29T00:53:36.5244570Z [�[31;1mprod�[39;22m] ssh '-A' '[email protected]' ': 214d4325f00d56abab2d; bash -ls'
2022-03-29T00:53:36.5245952Z [�[31;1mprod�[39;22m] �[32;1mrun�[39;22m [ -d /var/www/rapidradiocodes.co.uk ] || mkdir -p /var/www/rapidradiocodes.co.uk;
2022-03-29T00:53:36.5246892Z cd /var/www/rapidradiocodes.co.uk;
2022-03-29T00:53:36.5248135Z [ -d .dep ] || mkdir .dep;
2022-03-29T00:53:36.5248762Z [ -d releases ] || mkdir releases;
2022-03-29T00:53:36.5249325Z [ -d shared ] || mkdir shared;
2022-03-29T00:57:57.9260166Z [�[31;1mprod�[39;22m] ssh: connect to host rapidradiocodes.co.uk port 22: Network is unreachable
2022-03-29T00:57:57.9261351Z [�[31;1mprod�[39;22m] �[37;41m error �[39;49m �[33min setup.php on line 7:�[39m
2022-03-29T00:57:57.9262221Z [�[31;1mprod�[39;22m] �[31mexit code�[39m -1 (Unknown error)
2022-03-29T00:57:57.9265204Z ##[group]task deploy:failed
2022-03-29T00:57:57.9267879Z [�[31;1mprod�[39;22m] /usr/bin/php8.0 /home/runner/work/rapidradiocodes/rapidradiocodes/vendor/deployer/deployer/deployer.phar worker --port 43071 --task deploy:failed --host prod --ansi --no-interaction --decorated -vvv
2022-03-29T00:57:58.0477611Z �[33;1mdone�[39;22m on �[31;1mprod�[39;22m
2022-03-29T00:57:58.0787034Z ##[endgroup]
2022-03-29T00:57:58.0788177Z ##[group]task deploy:unlock
2022-03-29T00:57:58.0789856Z [�[31;1mprod�[39;22m] /usr/bin/php8.0 /home/runner/work/rapidradiocodes/rapidradiocodes/vendor/deployer/deployer/deployer.phar worker --port 43071 --task deploy:unlock --host prod --ansi --no-interaction --decorated -vvv
2022-03-29T00:57:58.1997093Z [�[31;1mprod�[39;22m] ssh '-A' '[email protected]' ': fe0900a1e52144d1f7fa; bash -ls'
2022-03-29T00:57:58.1998278Z [�[31;1mprod�[39;22m] �[32;1mrun�[39;22m rm -f /var/www/rapidradiocodes.co.uk/.dep/deploy.lock
2022-03-29T01:02:20.0587876Z [�[31;1mprod�[39;22m] ssh: connect to host rapidradiocodes.co.uk port 22: Network is unreachable
2022-03-29T01:02:20.0589100Z [�[31;1mprod�[39;22m] �[37;41m error �[39;49m �[33min lock.php on line 21:�[39m
2022-03-29T01:02:20.0589859Z [�[31;1mprod�[39;22m] �[31mexit code�[39m -1 (Unknown error)
2022-03-29T01:02:20.1060648Z ##[error]Failed: dep deploy -vvv
2022-03-29T01:02:20.1149531Z Post job cleanup.
2022-03-29T01:02:20.2434492Z [command]/usr/bin/git version
2022-03-29T01:02:20.2486814Z git version 2.35.1
2022-03-29T01:02:20.2530353Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2022-03-29T01:02:20.2577502Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2022-03-29T01:02:20.2845770Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2022-03-29T01:02:20.2868744Z http.https://github.com/.extraheader
2022-03-29T01:02:20.2877988Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2022-03-29T01:02:20.2964052Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2022-03-29T01:02:20.3466079Z Cleaning up orphan processes
I can also provide my deploy.yml
if required, although I'm able to deploy fine locally without GitHub Actions so the problem seems to be with the above Action file.
Thanks in advance, I would really appreciate some help with this because I spent the whole of yesterday banging my head over it.
Hi
I have a standard laravel deployment working locally.
Because the server I want to deploy to is behind a strict firewall I want to run a self hosted github runner to deploy to it.
However when I attempt to deploy I get the following:
Error: Command failed with exit code 1: ssh-agent -a /tmp/ssh-auth.sock
unix_listener: cannot bind to path /tmp/ssh-auth.sock: Address already in use
I understand what the errors means, but is there something I can change as a workaround?
Thanks
Mike
- name: Build
uses: deployphp/action@v1
with:
private-key: "${{ secrets.DEV_PRIVATE_KEY }}"
deployer-binary: "vendor/bin/dep"
dep: "build"
- name: DEV environment deployment
uses: deployphp/action@v1
with:
private-key: "${{ secrets.DEV_PRIVATE_KEY }}"
deployer-binary: "vendor/bin/dep"
dep: "deploy-artifact develop"
TLDR: the known hosts option implies it replaces the file, but it actually appends to it, which is not mentioned!
We've added the new github RSA fingerprints to a known hosts secret, along with several others, then told deployer to use it.
Unfortunately, deployer appends these to a known hosts file that has out of date fingerprints rather than replacing/overwriting, so we still get the SSH fingerprint problem despite adding the new entries.
As a workaround we're going to test removing all github fingerprints before running the deployer, but the documentation should be updated to make it clear that the action appends/extends, and does not replace/overwrite as currently implied
We're suddenly seeing an error when deploying - here's the output from GHA:
(node:1943) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
/home/runner/work/_actions/deployphp/action/v1/index.js:1
import core from '@actions/core'
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1031:15)
at Module._compile (node:internal/modules/cjs/loader:1065:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
I guess it was caused by this commit: ba36add
I can supply more our workflow / deployment script if needed.
With the update 1.0.11 the split
function call was removed and because of that, optional inputs doesn't work anymore. (See issue #3)
Hello,
I've stuck with deployer, maybe I do something wrong...
I have configured deploy.php in my project and tryed to create github action to automatically deploy, but getting error PHP Warning: require(contrib/npm.php): Failed to open stream: No such file or directory in /home/runner/work
Tryes to use Github Actions example from your site.
I have this error when running my deployment workflow:
It turns out the version downloaded via https://deployer.org/deployer.phar is 6.8.0. I think the action should download the latest version available by default, or maybe a required parameter should be added to select the major version of the downloaded deployer.phar
. Linked to deployphp/deployer#3225.
Shouldn't this action add the --no-interaction
option by default as interaction from deployer will cause issues?
Happy to PR this if you agree
I tried to increase verbosity level using both "-vv" and "-vvv" options, but the log I still see "php deployer.phar deploy altius-demo --no-interaction --ansi -v " command, and no debug output.
uses: deployphp/action@v1
with:
deployer-version: "6.8.0"
dep: deploy demo
private-key: ${{ secrets.SSH_DEPLOY_KEY }}
ssh-config: ${{ vars.SSH_CONFIG_DEPLOYER }}
options: |
branch: $DEPLOY_BRANCH
keep_releases: 10
verbosity: -vvv
Hello,
I would like to know if it's possible to.build assets and vendor only on ci and not directly on Host ?
I get this error :
Error: Command failed with ENOENT: deployer.phar deploy prod -f .github/deploy.php
spawnSync deployer.phar ENOENT
More verbose error message would be welcomed.
deploy.yml :
name: Deploy to Production
on:
push:
branches:
- 'master'
jobs:
deploy:
name: Deploy code to prod
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Deploy
uses: deployphp/action@master
with:
private-key: ${{ secrets.PRIVATE_KEY }}
known-hosts: ${{ secrets.KNOWN_HOSTS }}
dep: deploy prod -f .github/deploy.php
This is the deploy snippet in my github deploy.yml
- name: Deploy
uses: deployphp/action@v1
with:
private-key: ${{ secrets.PRIVATE_KEY }}
dep: deploy ${{ secrets.SSH_HOST }} -o branch=main -o keep_releases=3 -vvv
PRIVATE_KEY and SSH_HOST are defined in my github actions secrets
However, I keep seeing this error in teh deploy log
Run deployphp/action@v1
$ ssh-agent -a /tmp/ssh-auth.sock
SSH_AUTH_SOCK=/tmp/ssh-auth.sock; export SSH_AUTH_SOCK;
SSH_AGENT_PID=3422; export SSH_AGENT_PID;
echo Agent pid 3422;
Using "vendor/bin/dep".
Invalid JSON in options
$ php vendor/bin/dep deploy *** -o branch=main -o keep_releases=3 -vvv --no-interaction --ansi -v
task deploy:info
task deploy:setup
[***] /usr/bin/php8.1 /home/runner/work/laravel-api/laravel-api/vendor/***/***/dep worker --port 40175 --task deploy:setup --host *** --option branch=main --option keep_releases=3 --ansi --no-interaction --decorated -vvv
[***] ssh '-A' '-o' 'ControlMaster=auto' '-o' 'ControlPersist=60' '-o' 'ControlPath=/dev/shm/***@113.30.151.149' '***@113.30.151.149' ': 0f89c0c962742bac1f0b; bash -ls'
[***] run [ -d /var/www/html ] || mkdir -p /var/www/html;
cd /var/www/html;
[ -d .dep ] || mkdir .dep;
[ -d releases ] || mkdir releases;
[ -d shared ] || mkdir shared;
[***] Warning: Permanently added '113.30.151.149' (ED25519) to the list of known hosts.
[***] Permission denied, please try again.
[***] Permission denied, please try again.
[***] ***@113.30.151.149: Permission denied (publickey,password).
[***] error in setup.php on line 7:
[***] exit code -1 (Unknown error)
ERROR: Task deploy:setup failed!
task deploy:failed
task deploy:unlock
ERROR: Task deploy:unlock failed!
Error: Failed: dep deploy,***,-o,branch=main,-o,keep_releases=3,-vvv
using sshpass-action I have confirmed it can actually login from teh deploy, and I've also tested locally using teh private key and it has no problems logging in..
Any suggestions as to where to look?
I receive the following error trying to deploy my application:
Run deployphp/action@master
with:
private-key: ***
known-hosts: ***
ssh-config: ***
dep: deploy -v
Error: Callback must be a function. Received undefined
The error message here looks like it comes from the JavaScript in this repo. Is there a good way to debug it?
Firstly, it's great to see an official action for Deployer.
However, I'm wondering if there is a reason behind the decision to suppress output from the commands? Personally, having used Deployer in other CI/CD environments, it's incredibly useful to see the output for debugging reasons.
I regularly use the --revision
argument when deploying to non-production environments, so getting confirmation from Deployer of the revision used is super useful.
Sometimes this Action fails right away when it's doing "connecting [host]"
, even after it worked multiple times before.
This seems to be happening randomly, for whatever reason.
I've done numerous deploys, but this happens too frequently to be able to rely on.
Any thoughts??
Logs:
2021-08-19T17:59:09.3554813Z ##[group]Run deployphp/action@master
2021-08-19T17:59:09.3556780Z with:
2021-08-19T17:59:09.3670069Z private-key: ***
2021-08-19T17:59:09.3690909Z known-hosts: ***
2021-08-19T17:59:09.3692945Z dep: deploy develop -f ./.github/deploy.yml -vvv
2021-08-19T17:59:09.3694828Z env:
2021-08-19T17:59:09.3696829Z repo_url: https://github.com/org/repo
2021-08-19T17:59:09.3700275Z ##[endgroup]
2021-08-19T17:59:09.6854945Z connecting develop
2021-08-19T17:59:09.6870106Z
2021-08-19T17:59:09.6874566Z [develop] /usr/bin/php7.4 /home/runner/work/repo/repo/vendor/bin/dep worker --task deploy:info --host develop --port 42891 --file='./.github/deploy.yml' -vvv
2021-08-19T17:59:10.2350946Z ##[error]Command failed with exit code 1: vendor/bin/dep deploy develop -f ./.github/deploy.yml -vvv
Sometimes action fails with this error message:
Run deployphp/action@v1
Downloading "https://github.com/deployphp/deployer/releases/download/v7.0.2/deployer.phar".
ServerBusy
Egress is over the account limit.
RequestId:db600160-501e-0064-3a16-dfd3fd000000
Time:2022-10-13T15:14:51.1843133Z
When setting the deployer-version
parameter to try to find a workaround of #45, an error occured. It seems the action can't download other versions than the default one.
Here is the error:
The options
input provided in the README is not working:
- name: Deploy
uses: deployphp/action@v1
with:
# Config options for the Deployer. Same as the `-o` flag in the CLI.
# Optional.
options:
keep_releases: 7
When trying to use it, i have a syntax error message.
I also tried this syntax: no error, but options are ignored.
options: |
keep_releases: 7
im trying to create a deploy workflow but i need to deploy the application on a subdomain, how i set the directory of the server where the deploy need to be made?
Already tried working-directory and run a cd in the path that i need, nothing worked.
Hello,
Is there any way to authenticate using username and password instead of using a private key?
Or maybe there is a specific syntax to store username and password inside the private key instead of an SSH key?
Unfortunately, my hosting provider only support username / password authentication.
Thank you
When I use this action, can I keep deploy.yml
:
import:
- recipe/laravel.php
- contrib/php-fpm.php
- contrib/npm.php
config:
application: 'smt-app'
remote_user: forge
deploy_path: '~/{{hostname}}'
repository: '[email protected]:site/site-app.git'
php_fpm_version: '8.0'
keep_releases: '10'
shared_files:
- '.env'
- '.transip_private_key'
- 'storage/app/exact.api.json'
shared_dirs:
- 'bootstrap/cache'
- 'public/uploads'
- 'public/published'
- 'storage/framework/cache'
- 'storage/framework/sessions'
- 'storage/framework/views'
- 'storage/logs'
- 'storage/tls'
- 'storage/app/public'
- 'storage/app/modules'
writable_dirs:
- 'public/uploads'
- 'public/published'
- 'storage/framework/cache/data'
- 'storage/logs'
- 'storage/tls'
- 'storage/app/public'
- 'storage/app/modules'
hosts:
prod:
hostname: 'site.com'
staging:
hostname: 'staging.site.com'
tasks:
deploy:
- deploy:prepare
- deploy:vendors
- artisan:storage:link
- artisan:view:cache
- artisan:config:cache
- artisan:optimize
- artisan:migrate
- artisan:queue:restart
- artisan:horizon:terminate
- deploy:publish
after:
deploy:symlink: php-fpm:reload
deploy:failed: deploy:unlock
in the root of the Laravel/Vue project?
Two, where do we add the secrets?
Three, will the action run npm install
and npm run prod
inside the image as well? I mean, I can add this to the deploy.yml but better to get that done in the image/ on Github and then deploy like we do now. Only now we build locally.
Hey,
When running this I'm getting this error:
Downloading "undefined".
$ curl -LO undefined
curl: Remote file name has no length!
curl: (23) Failed writing received data to disk/application
Error: curl: Remote file name has no length!
The curl command that triggers this error can be found here:
https://github.com/deployphp/action/blob/master/index.js#L101
I tried to trace down the issue, and I'm guessing it's caused by the fact that the project is using Deployer version 7.3.1, but this is not (yet) in the manifest.json.
There is a check in place if the url == null
but it seems that the value is actually undefined.
With the recent change to githubs RSA fingerprints we had to update the SSH known hosts secret, but unfortunately github was not the only thing in there ( is there ever a situation were this deployer would run and not need to know the github SSH? ).
However github was not the only host listed, and now deployment fails with host key verification failed, but which key? Who is the host? My key? The private key in secrets? The server we're deploying to? How do I find out?
Here's the output, I've swapped out the IP for 1.2.3.4:
$ php vendor/bin/dep deploy test -v --no-interaction --ansi -vvv
✈︎ Deploying deploy-test on 1.2.3.4
• done on [1.2.3.4]
➤ Executing task deploy:prepare
[23.94.156.6] > echo $0
[23.94.156.6] < ssh multiplexing initialization
[23.94.156.6] < Host key verification failed.
➤ Executing task deploy:failed
• done on [1.2.3.4]
✔ Ok [0ms]
➤ Executing task deploy:unlock
[23.94.156.6] > rm -f ~/deploy/.dep/deploy.lock
[23.94.156.6] < ssh multiplexing initialization
[23.94.156.6] < Host key verification failed.
Also noting that this is an inherited setup, the person who originally set this up is long gone and unavailable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.