项目作者: Darkness4

项目描述 :
A flutter-builder container with build-args
高级语言: Dockerfile
项目地址: git://github.com/Darkness4/flutter-builder.git
创建时间: 2019-02-10T14:32:58Z
项目社区:https://github.com/Darkness4/flutter-builder

开源协议:MIT License

下载


Darkness4/flutter-builder

A flutter-builder container with the choice of the SDK and the flutter channel.

pipeline status
license
docker build status
docker pulls
docker stars

docker image size 29-master
docker image size 28-master
docker image size 27-master

Tags

SDK 29

  • latest, master, latest-master, 29, 29-master
  • dev, latest-dev, 29-dev
  • beta, latest-beta, 29-beta
  • stable, latest-stable, 29-stable

SDK 28

  • 28, 28-master
  • 28-dev
  • 28-beta
  • 28-stable

SDK 27

  • 27, 27-master
  • 27-dev
  • 27-beta
  • 27-stable

Usage

  1. docker pull darkness4/flutter-builder:{Android SDK}-{Flutter branch}

Gitlab CI Example

  1. # gitlab.yml
  2. stages:
  3. - build
  4. build:
  5. stage: build
  6. image: darkness4/flutter-builder:28
  7. before_script:
  8. - flutter channel master # Just to be sure
  9. - flutter upgrade # Always update
  10. script:
  11. - flutter build apk --target-platform android-arm,android-arm64 --split-per-abi
  12. after_script:
  13. - mv build/app/outputs/apk/release/app-armeabi-v7a-release.apk app-armeabi-v7a-release.apk
  14. - mv build/app/outputs/apk/release/app-arm64-v8a-release.apk app-arm64-v8a-release.apk
  15. artifacts:
  16. paths:
  17. - app-armeabi-v7a-release.apk
  18. - app-arm64-v8a-release.apk
  19. expire_in: 1 week
  1. ## License
  2. ```txt
  3. MIT License
  4. Copyright (c) 2019 Marc NGUYEN
  5. Permission is hereby granted, free of charge, to any person obtaining a copy
  6. of this software and associated documentation files (the "Software"), to deal
  7. in the Software without restriction, including without limitation the rights
  8. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  9. copies of the Software, and to permit persons to whom the Software is
  10. furnished to do so, subject to the following conditions:
  11. The above copyright notice and this permission notice shall be included in all
  12. copies or substantial portions of the Software.
  13. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  19. SOFTWARE.