mattermost-mobile-upstream/fastlane/.env.android.pr
Nuno Simões 9f0c68373c
workflows, fast lane: upload beta / release artifacts only to one bucket (#9570)
* fastlane: add s3_client_oidc and support only one bucket

- s3_client_oidc: support new buckets only with IAM / OIDC (s3_client_oidc:true). In pull-requests
the pipelines are still using static credentials which must be udpated
and follow ups (default).
- Support only one bucket for beta / releases, e.g. start using only
s3_bucket_name to put object and upload
- Links need to use DNS for beta / releases and keep using
bucket name for pull-requests.
- env files for beta / releases only with dns while
bucket name being set in workflow.

* workflows: upload only to the new bucket

- use only one S3 bucket with OIDC for release/beta, keep static creds for build-pr
- build-ios-release: OIDC + upload_artifacts_to_s3 with s3_client_oidc:true; simulator upload via upload_artifacts_to_s3 with s3_client_oidc:true
- build-ios-beta: simulator upload_artifacts_to_s3 with s3_client_oidc:true; beta upload with s3_client_oidc:true
- build-android-release / build-android-beta: AWS_BUCKET_NAME from new bucket, upload_artifacts_to_s3 with s3_client_oidc:true
- build-pr: keep AWS_ACCESS_KEY_ID/SECRET for iOS and Android; Android PR add separate S3 upload step with run..."

* relase: adjust release bucket name

* ci-pr: add upload artifacts to s3 to ios

* fsatlane: fix dns name in env ios release

* workflows, fastlane: dont upload artifacts to s3 in simulator

- fastlane `lane :simulator` just build the artifact and if we
want to upload we need to use `lane :upload_artifacts_to_s3` ...
- dont upload artifacts to s3 bucket in e2e workflows because it
is enough use github artifact for this.

* fastlane: add missing aws_bucket_dns_name

* fastlane: use error instead error to fail pipeline
2026-03-31 17:51:43 +02:00

14 lines
420 B
Promela

## You invoke this with --env android.pr on the fastlane command
APP_NAME="Mattermost Beta"
APP_SCHEME=mattermost
AWS_BUCKET_NAME=pr-builds.mattermost.com
AWS_BUCKET_DNS_NAME=pr-builds.mattermost.com
AWS_FOLDER_NAME=mattermost-mobile
AWS_REGION=us-east-1
BETA_BUILD=true
BUILD_FOR_RELEASE=true
BUILD_PR=true
COLLECT_NETWORK_METRICS=true
MAIN_APP_IDENTIFIER=com.mattermost.rnbeta
REPLACE_ASSETS=false
SHOW_ONBOARDING=true