This website collects cookies to deliver better user experience
HOW TO DEPLOY MOBILE APP BUILD ARTIFACTS AUTOMATICALLY TO AMAZON S3 WITH APPCIRCLE
HOW TO DEPLOY MOBILE APP BUILD ARTIFACTS AUTOMATICALLY TO AMAZON S3 WITH APPCIRCLE
Reading Time: 3 minutes
Appcircle supports the full lifecycle of mobile app projects for all CI/CD needs. In this article, we will be setting up Amazon S3 uploads for our builds. Any file or folder within the build environment can be deployed along with support for dynamic paths through environment variables.
Manage your mobile CI, CD and CT (continuous testing) with Appcircle
Adding Amazon S3 Upload Step to the Build Workflow
Amazon Simple Storage Service (S3) is an object storage service provided by AWS. It can be used to store build artifacts for various use cases. With the "File Upload to Amazon S3" step in Appcircle, you can directly upload any file or folder during the build to the specified Amazon S3 bucket.
To start, add the "File Upload to Amazon S3" step to the workflow from the workflow marketplace. You can add it anywhere within the workflow and multiple times as needed to upload specific files or folders. For instance, you can add it after the build step to deploy the build outputs.
Configuring the Amazon S3 Upload Step in the Workflow
Once added, press save to exit the workflow edit mode and click on the Amazon S3 step.\
The input values are as follows:
AWS Input File Path: This is the file/folder name to be uploaded to S3. You can specify the full path or you can specify the output of another step an environment variable. (e.g.
$AC_ARCHIVE_PATH allows you to upload the output of the Xcode Build for Devices step)
It is highly recommended to add the keys as secret environment variables instead of typing them here for security purposes.
As for the output, the specified files and the folders are deployed to a newly created directory as s3://bucket-name/timestamp to avoid any conflicts and potential overwrites.