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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
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 |