December 2, 2018
Building Flutter on Gitlab – Flutter Android Image
When it came to building a Flutter MVP application, I was very dissatisfied with the existing Flutter Images. They were outdated by many many versions. Therefore I created an image reflecting the current version of Flutter.
The source is on Github, you can find the Image ‘kattwinkel/flutter-android’ on Docker Hub.
A minimal .gitlab-ci.yml file might just look like this:
test app:
image: kattwinkel/flutter-android
stage: test
script:
- cd app
- flutter test
build app:
image: kattwinkel/flutter-android
stage: build
script:
- cd app
- flutter build apk
artifacts:
expire_in: 1 week
paths:
- app/build/app/outputs/apk/release/app-release.apk

