node.js - 云存储 bitbucket 管道忽略目录
问题描述
我有以下管道
image: node:10.15.3
pipelines:
default:
- step:
name: Installing
caches:
- node
script:
- rm -rf package-lock.json
- rm -rf node_modules
- npm install
- step:
name: Build
script:
- npm install --production
artifacts:
- build/**
- step:
name: Deploying
script:
- pipe: atlassian/google-cloud-storage-deploy:0.4.5
variables:
KEY_FILE: $KEY_FILE
PROJECT: $PROJECT
BUCKET: 'bucketname'
SOURCE: 'build'
CACHE_CONTROL: 'max-age=30'
ACL: 'public-read'
预期的行为是将所有内容部署在 build 文件夹中,但它会上传 build 文件夹本身,因此在我的存储中,有一个 build 文件夹,然后里面的所有内容......
我试过了
'build/**' 它只选择文件并忽略目录
'buuid/' 它的行为与 'build' 相同,它选择构建目录及其目录和文件夹中的所有内容
'build/*' 它只选择文件并忽略目录
我怎样才能构建文件夹,文件和目录中的所有内容..
谢谢
解决方案
我发现了问题,它在管道内部,只有复制命令我删除了管道并使用 -r 显式写入以递归方式复制文件夹
推荐阅读
- php - localhost 将我重定向到 404 magento 管理面板 url
- c# - 带有 netstandard 的 Xamarin Forms 项目:无法构建 UWP
- eclipse - 无法在登录中找到 email() 的元素 ID:错误(无法找到元素:{“method”:“id”,“selector”:“Email”})
- php - Laravel PHP:自定义代码写入位置
- symfony - Symfony 4 - 访问控制器内的参数
- r - 根据一列中的值对 R 数据框中的行进行排序
- javascript - IE9 上的 Javascript 导入/导出 csv 文件并发送到控制器
- c# - Decimal ToString 在不同的 PC 中返回不同的值
- ios - UITableView 出现缩略图错误
- css - 自定义 CSS 以删除 Wordpress 页面上的特定边距