使用Fastlane上传到S3 [英] Uploading to S3 with fastlane

查看:116
本文介绍了使用Fastlane上传到S3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用fastlane将应用程序上传到曲棍球和testflight.

I have been using fastlane for uploading app to hockey and testflight.

我也想用于S3并检查其文档.我对S3的了解有限.

I wanna use for S3 also and checking their document. I only have limited knowledge in S3.

https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md

s3(
  # All of these are used to make Shenzhen's `ipa distribute:s3` command
  access_key: ENV['S3_ACCESS_KEY'],               # Required from user.
  secret_access_key: ENV['S3_SECRET_ACCESS_KEY'], # Required from user.
  bucket: ENV['S3_BUCKET'],                       # Required from user.
  ipa: 'AppName.ipa',                             # Optional is you use `ipa` to build
  dsym: 'AppName.app.dSYM.zip',                   # Optional is you use `ipa` to build
  path: 'v{CFBundleShortVersionString}_b{CFBundleVersion}/', # This is actually the default.
  upload_metadata: true,                          # Upload version.json, plist and HTML. Set to false to skip uploading of these files.
  version_file_name: 'app_version.json',          # Name of the file to upload to S3. Defaults to 'version.json'
  version_template_path: 'path/to/erb'            # Path to an ERB to configure the structure of the version JSON file
)

如果我需要上传到/Main/bin/Dev,我的存储桶将是Main.但是我在哪里以及如何描述我的道路?在这里(路径:)吗?

If I need to upload to /Main/bin/Dev, my bucket will be Main. But where and how can I describe my path ? Is it here (path:) ?

他们这么说

建议不要将AWS访问密钥存储在Fastfile中.

It is recommended to not store the AWS access keys in the Fastfile.

如果是这样,我可以在哪里放置AWS访问密钥?它仍将位于文本文件之一中,并将提交到svn或git.

If so, where can I put AWS access key? It will still be in one of the text file and will commit to svn or git.

推荐答案

该想法是将其存储在环境变量中,通常人们使用.env .确保不提交.版本控制中的文件.

The idea is to store it in an environment variable, usually people use .env for that. Make sure to not commit the . file in version control.

这篇关于使用Fastlane上传到S3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆