Skip to content

Commit

Permalink
1.7.0 - Fix test flight publish issue by updating macOS to version 12 (
Browse files Browse the repository at this point in the history
…#131)

* updating macos version to 12

* disabling android publish for testing purposes

* adding parameters to only trigger specific deployments

* updating publish stages conditions

* removing dependency for building ios on previous stages

* moving build succeeded condition to the job level
  • Loading branch information
mkieres authored Oct 22, 2022
1 parent ee8262a commit d483212
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions pipelines/mobile_app/deploy-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ parameters:
displayName: App version
type: string
default: ""
- name: publishAndroid
displayName: Publish to Google Play
type: boolean
default: true
- name: publishIOS
displayName: Publish to Apple Store
type: boolean
default: true

variables:
- name: appVersion
Expand All @@ -32,9 +40,10 @@ stages:
- stage: CdBuildAndroid
jobs:
- job: BuildAndroid
condition: or(eq('${{ parameters.publishAndroid }}', 'true'), in(variables['Build.Reason'], 'BatchedCI', 'IndividualCI'))
timeoutInMinutes: 20
pool:
vmImage: "macOS-latest"
vmImage: "macOS-12"

steps:
- task: JavaToolInstaller@0
Expand Down Expand Up @@ -108,12 +117,12 @@ stages:

- stage: CdPublishAndroid
dependsOn: CdBuildAndroid
condition: succeeded('CdBuildAndroid')
jobs:
- job: PublishAndroid
- job: PublishAndroid
condition: eq(stageDependencies.CdBuildAndroid.BuildAndroid.result, 'Succeeded')
timeoutInMinutes: 5
pool:
vmImage: "macOS-latest"
vmImage: "macOS-12"

steps:
- task: DownloadPipelineArtifact@2
Expand All @@ -139,11 +148,13 @@ stages:
fastlane supply --aab app-release.aab --json_key $(serviceAccAuthJson.secureFilePath) --track beta --rollout 1.0 --package_name $(appPackageName) --skip_upload_apk true
- stage: CdBuildiOS
dependsOn: []
jobs:
- job: BuildiOS
condition: or(eq('${{ parameters.publishIOS }}', 'true'), in(variables['Build.Reason'], 'BatchedCI', 'IndividualCI'))
timeoutInMinutes: 30
pool:
vmImage: "macOS-latest"
vmImage: "macOS-12"

steps:
- task: FlutterInstall@0
Expand Down Expand Up @@ -206,12 +217,12 @@ stages:

- stage: CdPublishiOS
dependsOn: CdBuildiOS
condition: succeeded('CdBuildiOS')
jobs:
- job: PublishiOS
condition: eq(stageDependencies.CdBuildiOS.BuildiOS.result, 'Succeeded')
timeoutInMinutes: 20
pool:
vmImage: "macOS-latest"
vmImage: "macOS-12"

steps:
- task: DownloadPipelineArtifact@2
Expand Down

0 comments on commit d483212

Please sign in to comment.