atlassian/scp-deploy 在 bitbucket 部署管道上从 SCP 中排除文件夹的问题
Issue with atlassian/scp-deploy exclude folder from SCP on bitbucket deploy pipeline
请帮助理解,为什么我无法在 bitbucket 部署管道上从 SCP 中排除该文件夹
有我的例子:
image: php:7.2-fpm
pipelines:
default:
- step:
script:
- apt-get update && apt-get install -qy git curl libmcrypt-dev mariadb-client
- yes | pecl install mcrypt-1.0.1
- docker-php-ext-install pdo_mysql
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- php artisan migrate
- php artisan serve &
- sleep 5
- ./vendor/bin/phpunit
- curl -vk http://localhost:8000
services:
- mysql
- step:
name: Deploy artifacts using SCP to DEV
deployment: development
script:
- pipe: atlassian/scp-deploy:1.0.1
variables:
USER: $USER
SERVER: $SERVER
REMOTE_PATH: '/tmp/deploy'
#REMOTE_PATH: '/srv/www/site.com/'
LOCAL_PATH: '${BITBUCKET_CLONE_DIR}/*'
EXTRA_ARGS: '--exclude=${BITBUCKET_CLONE_DIR}/vendor/* --exclude=${BITBUCKET_CLONE_DIR}/.env'
definitions:
services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: 'test'
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_USER: 'test'
MYSQL_PASSWORD: 'test'
此示例有效,但由于“vendor”文件夹很大,我想将其从 SCP 中排除。
为什么在额外的参数上排除不起作用?
谢谢
只需在 RSYNC one 上替换您的“SCP”图像
pipe: atlassian/rsync-deploy:0.5.0
请帮助理解,为什么我无法在 bitbucket 部署管道上从 SCP 中排除该文件夹
有我的例子:
image: php:7.2-fpm
pipelines:
default:
- step:
script:
- apt-get update && apt-get install -qy git curl libmcrypt-dev mariadb-client
- yes | pecl install mcrypt-1.0.1
- docker-php-ext-install pdo_mysql
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- php artisan migrate
- php artisan serve &
- sleep 5
- ./vendor/bin/phpunit
- curl -vk http://localhost:8000
services:
- mysql
- step:
name: Deploy artifacts using SCP to DEV
deployment: development
script:
- pipe: atlassian/scp-deploy:1.0.1
variables:
USER: $USER
SERVER: $SERVER
REMOTE_PATH: '/tmp/deploy'
#REMOTE_PATH: '/srv/www/site.com/'
LOCAL_PATH: '${BITBUCKET_CLONE_DIR}/*'
EXTRA_ARGS: '--exclude=${BITBUCKET_CLONE_DIR}/vendor/* --exclude=${BITBUCKET_CLONE_DIR}/.env'
definitions:
services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: 'test'
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_USER: 'test'
MYSQL_PASSWORD: 'test'
此示例有效,但由于“vendor”文件夹很大,我想将其从 SCP 中排除。 为什么在额外的参数上排除不起作用?
谢谢
只需在 RSYNC one 上替换您的“SCP”图像
pipe: atlassian/rsync-deploy:0.5.0