Skip to content

Instantly share code, notes, and snippets.

@PrashantBhatasana
Created July 2, 2020 05:05
Show Gist options
  • Save PrashantBhatasana/3212559f7e63068f475f4ffe846906ca to your computer and use it in GitHub Desktop.
Save PrashantBhatasana/3212559f7e63068f475f4ffe846906ca to your computer and use it in GitHub Desktop.
This is the Buildspec file for AWS CodePipeline - Build Fluttter App
version: 0.2
phases:
install:
runtime-versions:
android: 29
java: openjdk8
commands:
- pwd
pre_build:
commands:
- echo Pre Build started on `date`
- git clone https://github.com/flutter/flutter.git -b stable
- export PATH="$PATH:`pwd`/flutter/bin"
- flutter precache
- flutter doctor
build:
commands:
- echo Build started on `date`
- flutter build apk --no-shrink
- ls -al
post_build:
commands:
- echo Build completed on `date`
artifacts:
files:
- build/app/outputs/apk/release/*.apk
discard-paths: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment