📱 Build Mobile App - dvsa/des-workflow-actions GitHub Wiki

Description

This workflow automates the process of building either a simulator artefact or an IPA artefact, depending on the specified inputs. It checks out the specified branch to build an artefact against, sets up Node, configures AWS credentials, retrieves configuration files from AWS Secrets Manager, and then uses Fastlane to handle the build tasks based on the provided parameters. Fastlane also handles code signing, naming the artefact, and the upload of the artefact to AWS S3.

Workflow Triggers

On Workflow Call

This workflow is triggered manually from the des-devops or des-mobile-app repositories. It also runs on push to the 'develop' and when a release tag is generated in the des-mobile-app repository.

Environment Variables

Name Description
RUN_ID Unique ID for the GitHub Actions workflow run
BRANCH The Git branch used to build the mobile app
ENVIRONMENT Specifies the environment for the app build
AWS_REGION AWS region to use
LC_ALL Locale setting for the build environment
LANG Language setting for the build environment
XCODE_VERSION Specifies the version of Xcode to use for the build
GEM_HOME Specifies where Ruby gems are installed.
PATH Directories the OS checks for executable files.

Inputs

Name Description Options
runs-on Specifies the runner label to use N/A
branch The branch to build from N/A
environment The target environment for the build develop | feature | release
config-type The configuration type for the build test | dev
build-type The type of build test | prod
build-simulator Whether to build a simulator artifact true | false
build-ipa Whether to build an IPA artifact true | false
xcode-version Version of Xcode to use Default: 16.1

Notes

  • GitHub Actions secrets required: AWS_ROLE
  • **AWS Secrets Manager secrets required: npmrc, ionic-config, fastlane-config, & sentryclirc