Compare commits

..

120 Commits

Author SHA1 Message Date
verified-commit[bot] de7f1e6870 chore(release): prepare for 3.38.2 2025-11-19 07:48:25 +00:00
verified-commit[bot] c1ba187e66 chore(release): upgrade flutter to 3.38.2 (#400) 2025-11-19 08:48:13 +01:00
renovate[bot] 3ca7c2269c chore(deps): update all non-major dependencies (#388) 2025-11-18 18:51:32 +01:00
verified-commit[bot] c22d64adab chore(release): prepare for 3.38.1 2025-11-17 19:59:55 +00:00
verified-commit[bot] 64172b2293 chore(release): upgrade flutter to 3.38.1 (#399)
Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
2025-11-17 20:59:39 +01:00
renovate[bot] 506923fb47 chore(deps): update mcr.microsoft.com/windows/servercore:ltsc2025 docker digest to 1126ba4 (#398)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-11-17 19:45:19 +01:00
verified-commit[bot] e90a255935 chore(release): prepare for 3.38.0 2025-11-12 21:37:19 +00:00
verified-commit[bot] f4ef35fa9a chore(release): upgrade flutter to 3.38.0 (#397)
Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-11-12 22:37:05 +01:00
renovate[bot] 41e24c433d chore(deps): update debian:13.1-slim docker digest to a347fd7 (#396)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-10 21:22:08 +01:00
verified-commit[bot] 745f5af23a chore(release): prepare for 3.35.7 2025-11-02 12:35:40 +00:00
verified-commit[bot] 240e03329a chore(release): upgrade flutter to 3.35.7 (#395)
Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
2025-11-02 13:35:28 +01:00
Eligio Mariño 6b512de361 ci: use merge-multiple for multiple artifact IDs (#394)
Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
2025-11-02 12:49:29 +01:00
renovate[bot] 46c0c1e7df chore(deps): update github-actions (major) (#393)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-11-01 10:26:25 +01:00
renovate[bot] c31a4e8405 chore(deps): update debian:13.1-slim docker digest to 66b37a5 (#390)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-10-28 23:13:39 +01:00
renovate[bot] c2b7365f2f chore(deps): update mcr.microsoft.com/windows/servercore:ltsc2025 docker digest to ca8664f (#391)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-27 21:35:37 +01:00
renovate[bot] c326519c16 chore(deps): update mcr.microsoft.com/windows/servercore:ltsc2025 docker digest to cc68391 (#389)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-21 09:06:28 +02:00
renovate[bot] 0fd84b3699 chore(deps): update react monorepo to v19.2.0 (#387)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-08 21:39:03 +02:00
renovate[bot] d917826c81 chore(deps): update github-actions (#384)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-08 08:48:50 +02:00
renovate[bot] 5520731ba6 chore(deps): update github-actions (major) (#385)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-10-06 21:53:39 +02:00
renovate[bot] 0ff207ba45 chore(deps): update debian:13.1-slim docker digest to 1caf1c7 (#386)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-06 19:06:16 +02:00
renovate[bot] 8940179326 chore(deps): update all non-major dependencies (#370)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
2025-10-02 08:51:40 +02:00
verified-commit[bot] 0d25c577cb chore(release): prepare for 3.35.5 2025-09-30 06:53:11 +00:00
verified-commit[bot] c569ba7b0c chore(release): upgrade flutter to 3.35.5 (#383)
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request)
GitHub action

Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
2025-09-30 08:52:58 +02:00
renovate[bot] ba9ff36db0 chore(deps): update mcr.microsoft.com/windows/servercore:ltsc2025 docker digest to 25d131d (#380)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-09-29 22:21:39 +02:00
renovate[bot] 4cddcea7b4 chore(deps): update debian docker tag to v13 (#377)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-09-24 14:41:37 +02:00
verified-commit[bot] 0d31f67ad2 chore(release): prepare for 3.35.4 2025-09-20 19:48:22 +00:00
verified-commit[bot] 18b3e138b2 chore(release): update flutter dependencies in version.json for 3.35.4 (#381)
Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-09-20 21:48:03 +02:00
verified-commit[bot] d25c95b07a chore(release): prepare for 3.35.3 2025-09-05 17:01:19 +00:00
verified-commit[bot] daf29cb53c chore(release): update flutter dependencies in version.json for 3.35.3 (#379)
Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
2025-09-05 19:01:03 +02:00
verified-commit[bot] 5a8df53369 chore(release): prepare for 3.35.2 2025-08-29 20:37:20 +00:00
verified-commit[bot] 8ef9faedfb chore(release): update flutter dependencies in version.json for 3.35.2 (#378)
Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
2025-08-29 22:37:07 +02:00
Eligio Mariño 78ac5b7f06 docs: add issue templates (#376) 2025-08-22 10:38:40 +02:00
Eligio Mariño 52285d2588 chore: create CODE_OF_CONDUCT.md (#374)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-21 22:37:08 +02:00
renovate[bot] d17712eb8a chore(deps): update debian:12.11-slim docker digest to b1a7414 (#372)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-08-19 19:56:54 +02:00
renovate[bot] 9584814388 chore(deps): update mcr.microsoft.com/windows/servercore:ltsc2025 docker digest to 570916a (#373)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-18 08:30:57 +02:00
verified-commit[bot] 7460e97f45 chore(release): prepare for 3.35.1 2025-08-17 16:37:06 +00:00
verified-commit[bot] a290bf28c3 chore(release): update flutter dependencies in version.json for 3.35.1 (#371)
Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-08-17 18:36:51 +02:00
renovate[bot] c9e5d504a0 fix(deps): update react monorepo to v19.1.1 (#369)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-11 20:02:40 +02:00
renovate[bot] 719f1ee3c4 chore(deps): update github-actions (#368)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-01 22:14:15 +02:00
verified-commit[bot] dab70e7e9c chore(release): prepare for 3.32.8 2025-07-29 17:49:11 +00:00
verified-commit[bot] 282af4caac chore(release): update flutter dependencies in version.json for 3.32.8 (#365)
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request)
GitHub action

Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
2025-07-29 19:48:58 +02:00
renovate[bot] 174020461b chore(deps): update debian:12.11-slim docker digest to 2424c18 (#366)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-07-28 22:27:20 +02:00
renovate[bot] cc23212035 fix(deps): update dependency cross-env to v10 (#367)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-28 20:50:45 +02:00
verified-commit[bot] 94ce0684d4 chore(release): prepare for 3.32.7 2025-07-17 20:05:04 +00:00
verified-commit[bot] 3b76d4c78c chore(release): update flutter dependencies in version.json for 3.32.7 (#364)
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request)
GitHub action

Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
2025-07-17 22:04:45 +02:00
renovate[bot] c5a453f021 chore(deps): update mcr.microsoft.com/windows/servercore:ltsc2025 docker digest to e4d4b91 (#363)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-14 08:55:52 +02:00
Eligio Mariño 2084aa62d7 ci: build image path to solve "skip output since it may contain secret" (#362) 2025-07-13 18:40:51 +02:00
verified-commit[bot] 5d87da6c3a chore(release): prepare for 3.32.6 2025-07-13 14:31:57 +00:00
verified-commit[bot] 6335d3f22a chore(release): update flutter dependencies in version.json for 3.32.6 (#361)
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request)
GitHub action

Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
2025-07-13 16:31:46 +02:00
renovate[bot] 56134b64af chore(deps): update node.js to v22.17.0 (#358)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-07-13 14:48:53 +02:00
renovate[bot] 67285c77fb chore(deps): update github-actions (#359)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-13 14:23:35 +02:00
renovate[bot] fd1168121a chore(deps): update debian:12.11-slim docker digest to 6ac2c08 (#360)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-07 21:12:53 +02:00
verified-commit[bot] f3c90f5a11 chore(release): prepare for 3.32.5 2025-06-26 04:12:47 +00:00
verified-commit[bot] cd61c75bf0 chore(release): update flutter dependencies in version.json for 3.32.5 (#357)
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request)
GitHub action

Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
2025-06-26 06:12:30 +02:00
renovate[bot] c2ac9525bd chore(deps): update debian:12.11-slim docker digest to e5865e6 (#355)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-16 17:28:13 +02:00
renovate[bot] c2de027b49 chore(deps): update mcr.microsoft.com/windows/servercore:ltsc2025 docker digest to 4c8150b (#356)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-16 11:36:49 +02:00
Eligio Mariño e642c38317 ci: parse json before output (#354) 2025-06-14 17:58:29 +02:00
verified-commit[bot] 233c2178d6 chore(release): prepare for 3.32.4 2025-06-14 14:11:55 +00:00
verified-commit[bot] ba54de256a chore(release): update flutter dependencies in version.json for 3.32.4 (#353)
Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
2025-06-14 16:11:39 +02:00
Eligio Mariño 6090f0667a ci: split release workflow into jobs (#352) 2025-06-14 15:25:44 +02:00
verified-commit[bot] 150bb4ecea chore(release): prepare for 3.32.3 2025-06-12 21:46:58 +00:00
verified-commit[bot] 69b7f74fb6 chore(release): update flutter dependencies in version.json for 3.32.3 (#351)
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request)
GitHub action

Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
2025-06-12 23:46:42 +02:00
verified-commit[bot] 74248a1094 chore(release): update flutter dependencies in version.json for 3.32.2 (#350)
Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-06-12 07:49:15 +02:00
Eligio Mariño 6b9e03009d ci: add VERSION_MANIFEST to tag workflow (#349) 2025-06-06 09:16:32 +02:00
verified-commit[bot] f8c0636810 chore(release): prepare for 3.32.2 2025-06-05 20:38:47 +00:00
verified-commit[bot] a32d4abcb9 chore(release): update flutter dependencies in version.json for 3.32.2 (#348)
Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
2025-06-05 19:17:21 +02:00
renovate[bot] 8ed6bdbb8b chore(deps): update github-actions (#346)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-01 11:48:11 +02:00
Eligio Mariño 9dba4d7096 ci: split into tag.yml and changelog.yml workflows (#347) 2025-06-01 11:24:27 +02:00
verified-commit[bot] 94fd0aeebd chore(release): update flutter dependencies in version.json for 3.32.1 (#345)
Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
2025-05-30 09:21:39 +02:00
Eligio Mariño 2d63f3e6c7 chore(deps): update cue-lang/cue to v0.13.0 in workflows (#344) 2025-05-26 23:13:44 +02:00
verified-commit[bot] e9c7bdcbaa chore(release): update flutter dependencies in version.json for 3.32.0 (#343)
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request)
GitHub action

Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
2025-05-23 21:35:51 +02:00
Eligio Mariño 68282b8b36 ci: update artifact download configuration (#342) 2025-05-23 19:14:07 +02:00
renovate[bot] ecb288efb1 chore(deps): update mcr.microsoft.com/windows/servercore:ltsc2025 docker digest to c6b2b26 (#340)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-22 21:57:04 +02:00
renovate[bot] 64e0a9f576 chore(deps): update all non-major dependencies (#341)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-22 20:00:06 +02:00
renovate[bot] 4be9167733 chore(deps): update debian:12.10-slim docker digest to 4b50eb6 (#338)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-05-06 08:25:19 +02:00
renovate[bot] 71e04e3449 chore(deps): update actions/create-github-app-token action to v2 (#336) 2025-05-01 11:32:59 +02:00
Eligio Mariño bfda07a4a2 ci: download immutable artifact by id (#337) 2025-05-01 11:21:18 +02:00
renovate[bot] 3916010100 chore(deps): update github-actions (#335) 2025-05-01 10:35:09 +02:00
renovate[bot] 31c7be1003 chore(deps): update mcr.microsoft.com/windows/servercore:ltsc2025 docker digest to a7c93b3 (#332) 2025-04-28 08:40:40 +02:00
renovate[bot] 8c8d84f06e chore(deps): update node.js to v22.15.0 (#333) 2025-04-28 08:40:18 +02:00
Eligio Mariño 7d44dbd91a ci: set tools digest to verify integrity (#331) 2025-04-28 08:17:44 +02:00
Eligio Mariño 76abd64c7a ci: generate changelog with git-cliff (#330) 2025-04-18 16:19:42 +02:00
verified-commit[bot] 472fc5d459 chore: update flutter dependencies in version.json for 3.29.3 (#329)
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request)
GitHub action

---------

Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-04-17 19:54:10 +02:00
Eligio Mariño 0e4f51c8f2 ci: path is a folder in download-artifact (#328) 2025-04-17 19:19:06 +02:00
Eligio Mariño a1142ffe96 ci: download-artifact can not overwrite existing files (#327) 2025-04-16 23:39:33 +02:00
renovate[bot] 7c60137c2f chore(deps): update debian:12.10-slim docker digest to b1211f6 (#326) 2025-04-14 22:31:12 +02:00
renovate[bot] 7d758661e9 fix(deps): update dependency mdx-to-md to ^0.5.0 (#324) 2025-04-09 22:16:45 +02:00
dependabot[bot] 65f1ccdc38 build(deps): bump estree-util-value-to-estree from 3.3.2 to 3.3.3 in /docs/src in the npm_and_yarn group across 1 directory (#325)
Bumps the npm_and_yarn group with 1 update in the /docs/src directory:
[estree-util-value-to-estree](https://github.com/remcohaszing/estree-util-value-to-estree).
2025-04-08 21:18:14 +02:00
Eligio Mariño a898b09a71 docs: add table of contents and image table (#323) 2025-04-06 14:13:06 +02:00
renovate[bot] 293c1e83cb chore(deps): update github-actions (#322)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-01 23:11:16 +02:00
renovate[bot] b9837c5467 chore(deps): update debian docker tag to v12.10 (#321) 2025-04-01 19:17:23 +02:00
Eligio Mariño 99aa696383 ci: grant app token only current repository (#320) 2025-03-27 21:54:48 +01:00
renovate[bot] 7e0a38048e chore(deps): update all non-major dependencies (#316)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-24 08:17:02 +01:00
Eligio Mariño 75667808e3 ci: upgrade artifact actions to use digest (#319) 2025-03-21 18:59:38 +01:00
Eligio Mariño 8fb8c501a6 ci: schedule GitHub Actions updates on the first day of the month (#318) 2025-03-17 20:10:01 +01:00
Eligio Mariño ef6cbeacfd build: update windows image to ltsc2025 (#317) 2025-03-17 19:39:15 +01:00
Eligio Mariño 54e1739640 feat: build windows image (#314) 2025-03-16 22:57:08 +01:00
Eligio Mariño 86b436c988 ci: get version from parsed JSON (#313) 2025-03-16 17:42:42 +01:00
dependabot[bot] be126b3881 build(deps): bump @babel/runtime (#312)
Bumps the npm_and_yarn group with 1 update in the /docs/src directory: [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime).


Updates `@babel/runtime` from 7.22.0 to 7.26.10
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.26.10/packages/babel-runtime)

---
updated-dependencies:
- dependency-name: "@babel/runtime"
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-16 17:10:01 +01:00
Eligio Mariño 36ccf04970 ci: single workflow to update versions (#311) 2025-03-16 16:50:18 +01:00
verified-commit[bot] 48960b660c chore: update flutter dependencies in version.json for 3.29.2 (#310)
Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-03-15 16:03:01 +01:00
verified-commit[bot] eb64413395 chore: update flutter version in flutter_version.json to 3.29.2 (#309)
Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
2025-03-15 15:11:53 +01:00
Eligio Mariño dd948b063a ci: upgrade actions only for new major or minor versions (#308) 2025-03-12 21:31:43 +01:00
Eligio Mariño 17ea4a6d5c ci: run pr build only from latest commit (#306) 2025-03-09 18:14:52 +01:00
Eligio Mariño 9f18883ac6 ci: generate tag with Github App token to trigger Actions (#305) 2025-03-09 14:02:52 +01:00
verified-commit[bot] edbb26e5be chore: update flutter dependencies in version.json for 3.29.1 (#304)
* chore: update flutter dependencies in version.json for 3.29.1

* ci: restore --depth 1

* docs: add changelog

---------

Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-03-09 13:13:08 +01:00
Eligio Mariño 806de4fe22 ci: discard changes to flutter source code when switching tags (#303) 2025-03-07 17:51:54 +01:00
verified-commit[bot] e097067866 chore: update flutter version in flutter_version.json to 3.29.1 (#302)
* chore: update flutter version in flutter_version.json to 3.29.1

---------

Co-authored-by: verified-commit[bot] <180343340+verified-commit[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-03-07 08:56:19 +01:00
Eligio Mariño d1e81c5265 docs: mention Flutter license (#301) 2025-03-03 21:35:31 +01:00
Eligio Mariño e21618e5b7 chore: use deb renovate datasource instead of repology (#300) 2025-03-03 20:53:45 +01:00
renovate[bot] 3d8b9f1cb2 chore(deps): update github-actions (#299)
* chore(deps): update github-actions

* ci: remove extra number sign

* ci: correct sha for actions/checkout

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-03-03 08:56:56 +01:00
renovate[bot] 7ba7bc61c5 chore(deps): update debian:12-slim docker digest to 12c396b (#298)
* chore(deps): update debian:12-slim docker digest to 12c396b

* build: add minor version to debian

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-03-03 08:54:33 +01:00
renovate[bot] 93dc79c851 chore(deps): update github-actions (#266)
* chore(deps): update github-actions

* ci: use full versions instead of only major where available

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
2025-03-02 14:27:32 +01:00
Eligio Mariño 394ceb5f15 ci: replace jq with cue to reduce tool dependencies (#297)
`cue` can read from JSON files with a concise syntax similar to `jq`. Let's use it instead of `jq`.
2025-03-02 12:30:28 +01:00
Eligio Mariño 7f4a0ab4c4 build: replace yq with cue to reduce tool dependencies (#296)
`cue` can generate a YAML file and parse a JSON file. Let's use it instead of `yq`. The same thing might be possible for `jq`.
2025-03-02 10:33:00 +01:00
Eligio Mariño 4ee592a310 ci: define VERSION_MANIFEST at workflow level (#295) 2025-02-24 23:06:46 +01:00
Eligio Mariño 5c74e2b416 ci: read environment variables in create_git_tag (#294) 2025-02-23 20:22:23 +01:00
Eligio Mariño b06762bac0 fix: use github context because octokit is not available (#293) 2025-02-23 19:41:51 +01:00
Eligio Mariño 0c8b1b4529 ci: checkout repository (#292) 2025-02-23 19:05:33 +01:00
Eligio Mariño e62bea76c8 ci: split ci and release workflows (#291) 2025-02-23 18:37:19 +01:00
51 changed files with 10051 additions and 3471 deletions
+3 -1
View File
@@ -2,4 +2,6 @@ FLUTTER_VERSION=3.7.7
FASTLANE_VERSION=2.213.0
ANDROID_BUILD_TOOLS_VERSION=30.0.3
ANDROID_PLATFORM_VERSIONS=28 31 33
ENABLE_ANALYTICS=true
ENABLE_ANALYTICS=true
ANDROID_NDK_VERSION=26.3.11579264
CMAKE_VERSION=3.22.1
+2
View File
@@ -0,0 +1,2 @@
# Normalize all text files to LF in repo, checkout CRLF on Windows
* text=auto eol=lf
+127
View File
@@ -0,0 +1,127 @@
# Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
## Our Standards
Examples of behavior that contributes to a positive environment for our
community include:
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community
Examples of unacceptable behavior include:
* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.
Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.
## Scope
This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at [Insert contact method].
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series
of actions.
**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within
the community.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
+38
View File
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.
+20
View File
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
+7 -2
View File
@@ -9,9 +9,13 @@
],
"packageRules": [
{
"description": "Schedule Github Actions updates on the first day of the month",
"groupName": "github-actions",
"matchDatasources": [
"github-tags"
],
"schedule": [
"* 0-3 1 * *"
]
}
],
@@ -22,9 +26,10 @@
"^Dockerfile$"
],
"matchStrings": [
"#\\s*renovate:\\s*datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\sARG .*?_VERSION=\"(?<currentValue>.*)\"\\s"
"#\\s*renovate:\\s*suite=(?<suite>.*?) depName=(?<depName>.*?)\\sARG .*?_VERSION=\"(?<currentValue>.*)\"\\s"
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
"registryUrlTemplate": "https://deb.debian.org/debian?{{#if release }}release={{release}}{{else}}suite=stable{{/if}}&components=main,contrib,non-free&binaryArch=amd64",
"datasourceTemplate": "deb"
}
]
}
+82 -52
View File
@@ -2,10 +2,14 @@ on:
pull_request:
workflow_dispatch:
# Declare default permissions as read only.
# Read-only permissions by default
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
test_image:
permissions:
@@ -14,50 +18,48 @@ jobs:
# Allow to write pull requests for the docker/scout-action to write a comment
pull-requests: write
# Allow to write security events for github/codeql-action/upload-sarif to upload SARIF results
security-events: write
security-events: write
runs-on: ubuntu-24.04
env:
IMAGE_REPOSITORY_NAME: flutter-android
VERSION_MANIFEST: config/version.json
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Login to Docker Hub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Read environment variables from version.json
- name: Read environment variables from the version manifest
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
run: ./script/set_environment_variables.sh
IMAGE_REPOSITORY_NAME: ${{ env.IMAGE_REPOSITORY_NAME }}
VERSION_MANIFEST: ${{ env.VERSION_MANIFEST }}
with:
script: |
const script = require('./script/setEnvironmentVariables.js')
return await script({ core })
- name: Load image metadata
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
id: metadata
with:
images: |
${{ env.IMAGE_REPOSITORY_PATH }}
ghcr.io/${{ env.IMAGE_REPOSITORY_PATH }}
quay.io/${{ env.IMAGE_REPOSITORY_PATH }}
tags: |
type=raw,value=${{ env.FLUTTER_VERSION }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
- name: Login to Docker Hub
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build image and push to local Docker daemon
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
file: android.Dockerfile
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
@@ -81,7 +83,7 @@ jobs:
# TODO: Parallelize testing and vulnerability scanning
- name: Scan with Docker Scout
id: docker-scout
uses: docker/scout-action@6ac950eb733f8b2811f25c05d97bfb3d181b8026 # v1
uses: docker/scout-action@f8c776824083494ab0d56b8105ba2ca85c86e4de # v1.18.2
with:
command: compare, recommendations
# Use the Docker Hub image that is the first tag in the metadata
@@ -96,30 +98,40 @@ jobs:
# debug: true
# verbose-debug: true
validate_version:
validate_version_files:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Cue for JSON validation
uses: cue-lang/setup-cue@a93fa358375740cd8b0078f76355512b9208acb1 # v1.0.1
- name: Setup CUE
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
with:
repo: cue-lang/cue
tag: v0.15.0
digest: 06925fc1e5174591cef0b1e42ac32cff4271804742cd20893de1793b6d82d460
- name: Validate version.json and flutter_version.json
- name: Validate version.json and flutter_version.json with CUE
run: |
cue vet config/version.cue config/version.json
cue vet config/flutter_version.cue config/flutter_version.json
cue vet config/version.cue -d '#FlutterVersion' config/flutter_version.json
cue vet config/version.cue -d '#Version' config/version.json
validate_generated_config:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Generate test files
uses: mikefarah/yq@bbdd97482f2d439126582a59689eb1c855944955 # v4
- name: Setup CUE
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
with:
cmd: ./script/update_test.sh
repo: cue-lang/cue
tag: v0.15.0
digest: 06925fc1e5174591cef0b1e42ac32cff4271804742cd20893de1793b6d82d460
- name: Generate test files with CUE
run: |
./script/update_test.sh
- name: Check if there are any changes in the git working tree
run: |
@@ -130,14 +142,25 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup NodeJS
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
cache: 'npm'
ref: ${{ github.head_ref }}
- name: Setup NodeJS
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
cache: npm
cache-dependency-path: docs/src/package-lock.json
node-version-file: docs/src/package.json
node-version: lts/*
- name: Generate authentication token with GitHub App to trigger Actions
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
id: app-token
with:
app-id: ${{ secrets.VERIFIED_COMMIT_ID }}
private-key: ${{ secrets.VERIFIED_COMMIT_KEY }}
repositories: ${{ github.event.repository.name }}
owner: ${{ github.repository_owner }}
- name: Update documentation
working-directory: docs/src
@@ -145,10 +168,13 @@ jobs:
npm ci --prefer-offline
npm run build
- name: Check if there are any changes in the git working tree
run: |
git add -A
git diff --exit-code HEAD
- name: Commit and push documentation
uses: grafana/github-api-commit-action@b1d81091e8480dd11fcea8bc1f0ab977a0376ca5 # v1.0.0
with:
commit-message: 'docs: generate documentation files'
success-if-no-changes: true
stage-all-files: true
token: ${{ steps.app-token.outputs.token }}
test_gradle:
permissions:
@@ -162,13 +188,13 @@ jobs:
password: ${{ github.token }}
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Read version.json
id: version-json
run: |
{
echo "content<<EOF"
echo "content<<EOF"
cat ./config/version.json
echo "EOF"
} >> $GITHUB_OUTPUT
@@ -182,7 +208,7 @@ jobs:
run: |
cd $FLUTTER_ROOT
git fetch origin ${{ env.FLUTTER_VERSION }}:${{ env.FLUTTER_VERSION }}
git switch ${{ env.FLUTTER_VERSION }}
git switch --discard-changes ${{ env.FLUTTER_VERSION }}
- name: Create test application
run: |
@@ -194,8 +220,12 @@ jobs:
cat ../../script/updateAndroidVersions.gradle.kts >> app/build.gradle.kts
./gradlew --warning-mode all updateAndroidVersions
- name: Setup Cue for JSON validation
uses: cue-lang/setup-cue@a93fa358375740cd8b0078f76355512b9208acb1 # v1.0.1
- name: Setup CUE
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
with:
repo: cue-lang/cue
tag: v0.15.0
digest: 06925fc1e5174591cef0b1e42ac32cff4271804742cd20893de1793b6d82d460
- name: Validate version.json
run: cue vet config/version.cue config/version.json
- name: Validate version.json with CUE
run: cue vet config/version.cue -d '#Version' config/version.json
+61
View File
@@ -0,0 +1,61 @@
on:
push:
branches:
- main
paths:
- config/version.json
workflow_dispatch:
jobs:
changelog:
runs-on: ubuntu-24.04
env:
IMAGE_REPOSITORY_NAME: flutter-android
VERSION_MANIFEST: config/version.json
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
# TODO: Fetch only a few commits after using --unreleased in git-cliff
# Fetch all commits to use as input for the changelog generation
fetch-depth: 0
# Fetch all tags to use as input for the changelog generation
fetch-tags: true
- name: Setup git-cliff
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
with:
repo: orhun/git-cliff
tag: v2.10.1
digest: 6abe8a3e112b266dd00abf9089a8052ddf7314f39e1c53e192edf0652abca4eb
- name: Read environment variables from the version manifest
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
IMAGE_REPOSITORY_NAME: ${{ env.IMAGE_REPOSITORY_NAME }}
VERSION_MANIFEST: ${{ env.VERSION_MANIFEST }}
with:
script: |
const script = require('./script/setEnvironmentVariables.js')
return await script({ core })
- name: Update changelog
run: |
git-cliff -v --tag ${{ env.FLUTTER_VERSION }} --github-repo ${{ github.repository }} --output changelog.md
- name: Generate authentication token with GitHub App to trigger Actions
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
id: app-token
with:
app-id: ${{ secrets.VERIFIED_COMMIT_ID }}
private-key: ${{ secrets.VERIFIED_COMMIT_KEY }}
repositories: ${{ github.event.repository.name }}
owner: ${{ github.repository_owner }}
- name: Commit and push changelog
uses: grafana/github-api-commit-action@b1d81091e8480dd11fcea8bc1f0ab977a0376ca5 # v1.0.0
with:
commit-message: "chore(release): prepare for ${{ env.FLUTTER_VERSION }}"
stage-all-files: true
token: ${{ steps.app-token.outputs.token }}
+84
View File
@@ -0,0 +1,84 @@
on:
push:
branches:
- main
paths-ignore:
- changelog.md
workflow_dispatch:
# Read-only permissions by default
permissions:
contents: read
env:
IMAGE_REPOSITORY_NAME: flutter-android
VERSION_MANIFEST: config/version.json
jobs:
test_image:
runs-on: ubuntu-24.04
env:
ANDROID_BUILD_TOOLS_VERSION: 30.0.3
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Login to Docker Hub
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Setup CUE
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
with:
repo: cue-lang/cue
tag: v0.15.0
digest: 06925fc1e5174591cef0b1e42ac32cff4271804742cd20893de1793b6d82d460
- name: Read environment variables from the version manifest
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
IMAGE_REPOSITORY_NAME: ${{ env.IMAGE_REPOSITORY_NAME }}
VERSION_MANIFEST: ${{ env.VERSION_MANIFEST }}
with:
script: |
const script = require('./script/setEnvironmentVariables.js')
return await script({ core })
- name: Load image metadata
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
id: metadata
with:
images: |
${{ env.IMAGE_REPOSITORY_PATH }}
tags: |
type=raw,value=${{ env.FLUTTER_VERSION }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
- name: Build image and push to local Docker daemon
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
file: android.Dockerfile
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
target: android
build-args: |
flutter_version=${{ env.FLUTTER_VERSION }}
fastlane_version=${{ env.FASTLANE_VERSION }}
android_build_tools_version=${{ env.ANDROID_BUILD_TOOLS_VERSION }}
android_platform_versions=${{ env.ANDROID_PLATFORM_VERSIONS }}
android_ndk_version=${{ env.ANDROID_NDK_VERSION }}
cmake_version=${{ env.CMAKE_VERSION }}
- name: Test image
uses: plexsystems/container-structure-test-action@c0a028aa96e8e82ae35be556040340cbb3e280ca # v0.3.0
with:
image: ${{ fromJSON(steps.metadata.outputs.json).tags[0] }}
config: test/android.yml
+142 -111
View File
@@ -1,27 +1,21 @@
on:
push:
branches:
- main
# paths:
# - .github/workflows/release.yml
# - Dockerfile
# - config/version.json
# - script/docker-entrypoint.sh
# - script/set_environment_variables.sh
# - test/**
tags:
- '*'
workflow_dispatch:
# Declare default permissions as read only.
# Read-only permissions by default
permissions:
contents: read
env:
FLUTTER_VERSION: ${{ github.ref_name }}
jobs:
build_push_android:
release_android:
permissions:
# Allow to write packages to push the container image to the Github Container Registry
packages: write
# Allow to write security events to upload the results to code-scanning dashboard.
security-events: write
runs-on: ubuntu-24.04
env:
IMAGE_REPOSITORY_NAME: flutter-android
@@ -29,47 +23,21 @@ jobs:
VERSION_MANIFEST: config/version.json
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Generate authentication token with GitHub App
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1
id: generate-token
with:
app-id: ${{ secrets.VERIFIED_COMMIT_ID }}
private-key: ${{ secrets.VERIFIED_COMMIT_KEY }}
- name: Login to Docker Hub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Login to Quay.io
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Read environment variables from version.json
- name: Read environment variables from the version manifest
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
run: ./script/set_environment_variables.sh
- name: Set environment variable for image repository and tag
run: |
IMAGE_REPOSITORY_PATH="${{ github.repository_owner }}/${{ env.IMAGE_REPOSITORY_NAME }}"
echo "IMAGE_REPOSITORY_PATH=$IMAGE_REPOSITORY_PATH" >> $GITHUB_ENV
IMAGE_REPOSITORY_NAME: ${{ env.IMAGE_REPOSITORY_NAME }}
VERSION_MANIFEST: ${{ env.VERSION_MANIFEST }}
with:
script: |
const script = require('./script/setEnvironmentVariables.js')
return await script({ core })
- name: Load image metadata
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
id: metadata
with:
images: |
@@ -80,34 +48,32 @@ jobs:
type=raw,value=${{ env.FLUTTER_VERSION }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
- name: Build image and push to local Docker daemon
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6
- name: Login to Docker Hub
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
target: android
build-args: |
flutter_version=${{ env.FLUTTER_VERSION }}
fastlane_version=${{ env.FASTLANE_VERSION }}
android_build_tools_version=${{ env.ANDROID_BUILD_TOOLS_VERSION }}
android_platform_versions=${{ env.ANDROID_PLATFORM_VERSIONS }}
android_ndk_version=${{ env.ANDROID_NDK_VERSION }}
cmake_version=${{ env.CMAKE_VERSION }}
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Test image
uses: plexsystems/container-structure-test-action@c0a028aa96e8e82ae35be556040340cbb3e280ca # v0.3.0
- name: Login to GitHub Container Registry
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
image: ${{ fromJSON(steps.metadata.outputs.json).tags[0] }}
config: test/android.yml
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Login to Quay.io
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Build image and push it to registries
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
file: android.Dockerfile
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
@@ -122,8 +88,29 @@ jobs:
android_ndk_version=${{ env.ANDROID_NDK_VERSION }}
cmake_version=${{ env.CMAKE_VERSION }}
update_description:
runs-on: ubuntu-24.04
needs: release_android
env:
IMAGE_REPOSITORY_NAME: flutter-android
VERSION_MANIFEST: config/version.json
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Read environment variables from the version manifest
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
IMAGE_REPOSITORY_NAME: ${{ env.IMAGE_REPOSITORY_NAME }}
VERSION_MANIFEST: ${{ env.VERSION_MANIFEST }}
with:
script: |
const script = require('./script/setEnvironmentVariables.js')
return await script({ core })
- name: Update Docker Hub description
uses: peter-evans/dockerhub-description@e98e4d1628a5f3be2be7c231e50981aee98723ae # v4
uses: peter-evans/dockerhub-description@1b9a80c056b620d92cedb9d9b5a223409c68ddfa # v5.0.0
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
@@ -131,54 +118,98 @@ jobs:
short-description: ${{ github.event.repository.description }}
readme-filepath: readme.md
record_image:
permissions:
# Allow to write code scanning results to GitHub's code scanning dashboard
security-events: write
runs-on: ubuntu-24.04
needs: release_android
env:
IMAGE_REPOSITORY_NAME: flutter-android
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Login to Docker Hub
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Record image in Docker Scout environment
id: docker-scout-environment
uses: docker/scout-action@6ac950eb733f8b2811f25c05d97bfb3d181b8026 # v1
uses: docker/scout-action@f8c776824083494ab0d56b8105ba2ca85c86e4de # v1.18.2
with:
command: environment, cves
# Use the Docker Hub image that is the first tag in the metadata
image: registry://${{ fromJson(steps.metadata.outputs.json).tags[0] }}
image: registry://${{ github.repository_owner }}/${{ env.IMAGE_REPOSITORY_NAME }}:${{ env.FLUTTER_VERSION }}
environment: prod
only-fixed: true
organization: ${{ secrets.DOCKER_HUB_USERNAME }}
sarif-file: sarif.json
- name: Update bootstrap image tag in environment variable
run: gh variable set FLUTTER_VERSION --body "${{ env.FLUTTER_VERSION }}"
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
# Upload the results to GitHub's code scanning dashboard (optional).
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
- name: Upload to code-scanning
uses: github/codeql-action/upload-sarif@4f3212b61783c3c68e8309a0f18a699764811cda # v3
- name: Upload the results to GitHub's code scanning dashboard
uses: github/codeql-action/upload-sarif@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
with:
sarif_file: sarif.json
# TODO: Use kaniko for building and pushing after slowness is solved
# TODO: https://github.com/GoogleContainerTools/kaniko/issues/970
# TODO: https://github.com/GoogleContainerTools/kaniko/issues/875
# TODO: Use kaniko for building and pushing after pushing to Docker daemon is solved, to be able to test Docker image, with the following issues
# TODO: https://github.com/GoogleContainerTools/kaniko/issues/1331
# - name: Build image and push it to registries
# uses: int128/kaniko-action@v1
# with:
# push: true
# cache: true
# cache-repository: ${{ steps.ecr-cache.outputs.repository-uri }}
# tags: ${{ steps.metadata.outputs.tags }}
# labels: ${{ steps.metadata.outputs.labels }}
# build-args: |
# flutter_version=${{ env.FLUTTER_VERSION }}
# android_build_tools_version=${{ env.ANDROID_BUILD_TOOLS_VERSION }}
# android_platform_versions=${{ env.ANDROID_PLATFORM_VERSIONS }}
# kaniko-args: |
# --skip-unused-stages=true
# --use-new-run=true
# --snapshotMode=redo
# target: android
# executor: gcr.io/kaniko-project/executor:latest
# TODO: https://github.com/snok/container-retention-policy
# TODO: Push a build image before the final image
# TODO: Run basic tests with build image
# TODO: Push final image only if tests pass https://redhat-cop.github.io/ci/publishing-images.html
set_bootstrap_image:
runs-on: ubuntu-24.04
needs: release_android
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Generate authentication token with GitHub App to trigger Actions
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
id: app-token
with:
app-id: ${{ secrets.VERIFIED_COMMIT_ID }}
private-key: ${{ secrets.VERIFIED_COMMIT_KEY }}
repositories: ${{ github.event.repository.name }}
owner: ${{ github.repository_owner }}
- name: Update bootstrap image tag in environment variable
run: gh variable set FLUTTER_VERSION --body "${{ env.FLUTTER_VERSION }}"
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
create_github_release:
permissions:
# Allow to create releases and upload assets to them
contents: write
runs-on: ubuntu-24.04
needs: release_android
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
# TODO: Fetch only a few commits after using --unreleased in git-cliff
# Fetch all commits to use as input for the changelog generation
fetch-depth: 0
# Fetch all tags to use as input for the changelog generation
fetch-tags: true
- name: Setup git-cliff
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
with:
repo: orhun/git-cliff
tag: v2.10.1
digest: 6abe8a3e112b266dd00abf9089a8052ddf7314f39e1c53e192edf0652abca4eb
- name: Get the tag details
id: get-tag-details
run: |-
# Store the changelog in a temporary directory to not pollute the working directory
mkdir -p "${{ runner.temp }}/git-cliff"
changelog_file="${{ runner.temp }}/git-cliff/changelog.md"
echo "changelog_file=${changelog_file}" >>$GITHUB_OUTPUT
git-cliff -v --latest --strip all --no-exec --github-repo "${{ github.repository }}" --output "$changelog_file"
- name: Create Github release
env:
GH_TOKEN: ${{ github.token }}
run: |-
gh release create "${{ env.FLUTTER_VERSION }}" \
--title="${{ env.FLUTTER_VERSION }}" \
--notes-file="${{ steps.get-tag-details.outputs.changelog_file }}"
+4 -4
View File
@@ -34,12 +34,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Run analysis
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
with:
results_file: results.sarif
results_format: sarif
@@ -61,7 +61,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: Upload artifact
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: SARIF file
path: results.sarif
@@ -70,6 +70,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard (optional).
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
- name: Upload to code-scanning
uses: github/codeql-action/upload-sarif@4f3212b61783c3c68e8309a0f18a699764811cda # v3
uses: github/codeql-action/upload-sarif@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
with:
sarif_file: results.sarif
+48
View File
@@ -0,0 +1,48 @@
on:
push:
branches:
- main
paths:
- changelog.md
workflow_dispatch:
jobs:
create_git_tag:
runs-on: ubuntu-24.04
env:
IMAGE_REPOSITORY_NAME: flutter-android
VERSION_MANIFEST: config/version.json
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Generate authentication token with GitHub App to trigger Actions
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
id: app-token
with:
app-id: ${{ secrets.VERIFIED_COMMIT_ID }}
private-key: ${{ secrets.VERIFIED_COMMIT_KEY }}
repositories: ${{ github.event.repository.name }}
owner: ${{ github.repository_owner }}
- name: Read environment variables from the version manifest
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
IMAGE_REPOSITORY_NAME: ${{ env.IMAGE_REPOSITORY_NAME }}
VERSION_MANIFEST: ${{ env.VERSION_MANIFEST }}
with:
script: |
const script = require('./script/setEnvironmentVariables.js')
return await script({ core })
- name: Create Tag for a New Flutter Version
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
OLD_FLUTTER_VERSION: ${{ vars.FLUTTER_VERSION }}
NEW_FLUTTER_VERSION: ${{ env.FLUTTER_VERSION }}
with:
github-token: ${{ steps.app-token.outputs.token }}
script: |
const script = require('./script/createGitTag.js')
await script({ core, context, github })
@@ -1,106 +0,0 @@
on:
push:
branches:
- main
paths:
- .github/workflows/update_flutter_dependencies.yml
- config/flutter_version.json
workflow_dispatch:
# Declare default permissions as read only.
permissions:
contents: read
jobs:
update_version:
permissions:
# Allow to write contents to push commits
contents: write
# Allow to read packages to pull the container image from GitHub Container Registry
packages: read
# Allow to write pull requests to create a pull request
pull-requests: write
runs-on: ubuntu-24.04
container:
image: ghcr.io/${{ github.repository_owner }}/flutter-android:${{ vars.FLUTTER_VERSION }}
credentials:
username: ${{ github.actor }}
password: ${{ github.token }}
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Generate authentication token with GitHub App
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1
id: generate-token
with:
app-id: ${{ secrets.VERIFIED_COMMIT_ID }}
private-key: ${{ secrets.VERIFIED_COMMIT_KEY }}
- name: Copy Flutter version into version manifest and export FLUTTER_* environment variables
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
with:
script: |
const script = require('./script/copyFlutterVersion.js')
await script({core})
- name: Update latest Fastlane version
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
with:
script: |
const script = require('./script/updateFastlaneVersion.js')
await script({core, fetch})
- name: Setup Flutter
run: |
cd $FLUTTER_ROOT
git fetch origin ${{ env.FLUTTER_VERSION }}:${{ env.FLUTTER_VERSION }}
git switch ${{ env.FLUTTER_VERSION }}
# TODO: Create test app in specific folder with step id, to allow parallel execution
- name: Create test application
run: |
flutter create test_app
# TODO: Cache gradle https://github.com/gradle/gradle-build-action
- name: Update default Android platform versions in Flutter
working-directory: test_app/android
run: |
cat ../../script/updateAndroidVersions.gradle.kts >> app/build.gradle.kts
./gradlew --warning-mode all updateAndroidVersions
- name: Clean test application
run: |
rm -rf test_app
- name: Setup Cue for JSON validation
uses: cue-lang/setup-cue@a93fa358375740cd8b0078f76355512b9208acb1 # v1.0.1
- name: Validate version.json
run: cue vet config/version.cue config/version.json
- name: Setup NodeJS
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
cache: 'npm'
cache-dependency-path: docs/src/package-lock.json
node-version-file: docs/src/package.json
- name: Update documentation
working-directory: docs/src
run: |
npm ci --prefer-offline
npm run build
- name: Create commit message variable
run: |
echo "COMMIT_MESSAGE=chore: update flutter dependencies in version.json for ${{ env.FLUTTER_VERSION }}" >> $GITHUB_ENV
- name: Create pull request if there are changes
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7
with:
commit-message: ${{ env.COMMIT_MESSAGE }}
branch: update-flutter-dependencies/${{ env.FLUTTER_VERSION }}
sign-commits: true
title: ${{ env.COMMIT_MESSAGE }}
token: ${{ steps.generate-token.outputs.token }}
@@ -1,53 +0,0 @@
on:
schedule:
- cron: '0 0 * * MON-FRI'
workflow_dispatch:
# Declare default permissions as read only.
permissions:
contents: read
jobs:
update_flutter_version:
permissions:
# Allow to write contents to push commits
contents: write
# Allow to write pull requests to push commits and write comments
pull-requests: write
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Generate authentication token with GitHub App
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1
id: generate-token
with:
app-id: ${{ secrets.VERIFIED_COMMIT_ID }}
private-key: ${{ secrets.VERIFIED_COMMIT_KEY }}
- name: Update latest Flutter version
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
with:
script: |
const script = require('./script/updateFlutterVersion.js')
await script({core, fetch})
- name: Setup Cue for JSON validation
uses: cue-lang/setup-cue@a93fa358375740cd8b0078f76355512b9208acb1 # v1.0.1
- name: Validate version.json
run: cue vet config/flutter_version.cue config/flutter_version.json
- name: Create commit message variable
run: |
echo "COMMIT_MESSAGE=chore: update flutter version in flutter_version.json to ${{ env.FLUTTER_VERSION }}" >> $GITHUB_ENV
- name: Create pull request if there are changes
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7
with:
commit-message: ${{ env.COMMIT_MESSAGE }}
branch: update-flutter-version/${{ env.FLUTTER_VERSION }}
sign-commits: true
title: ${{ env.COMMIT_MESSAGE }}
token: ${{ steps.generate-token.outputs.token }}
+260
View File
@@ -0,0 +1,260 @@
on:
schedule:
- cron: '0 0 * * MON-FRI'
workflow_dispatch:
# Declare default permissions as read only.
permissions:
contents: read
jobs:
update_flutter_version:
permissions:
# Allow to write contents to push commits
contents: write
# Allow to write pull requests to push commits and write comments
pull-requests: write
runs-on: ubuntu-24.04
outputs:
new_version: ${{ steps.update_flutter_version.outputs.result }}
flutter_version_artifact_id: ${{ steps.upload-version.outputs.artifact-id }}
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Update latest Flutter version
id: update_flutter_version
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
const script = require('./script/updateFlutterVersion.js')
return await script({core, fetch})
- name: Setup CUE
if: ${{ steps.update_flutter_version.outputs.result == 'true' }}
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
with:
repo: cue-lang/cue
tag: v0.15.0
digest: 06925fc1e5174591cef0b1e42ac32cff4271804742cd20893de1793b6d82d460
- name: Validate version.json with CUE
if: ${{ steps.update_flutter_version.outputs.result == 'true' }}
run: cue vet config/version.cue -d '#FlutterVersion' config/flutter_version.json
- name: Upload artifact with the new Flutter version
if: ${{ steps.update_flutter_version.outputs.result == 'true' }}
id: upload-version
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: flutter_version.json
path: config/flutter_version.json
update_android_version:
permissions:
# Allow to write contents to push commits
contents: write
# Allow to read packages to pull the container image from GitHub Container Registry
packages: read
# Allow to write pull requests to create a pull request
pull-requests: write
needs: update_flutter_version
if: ${{ needs.update_flutter_version.outputs.new_version == 'true' }}
outputs:
version_artifact_id: ${{ steps.upload-version.outputs.artifact-id }}
android_test_artifact_id: ${{ steps.upload-android-test.outputs.artifact-id }}
runs-on: ubuntu-24.04
container:
image: ghcr.io/${{ github.repository_owner }}/flutter-android:${{ vars.FLUTTER_VERSION }}
credentials:
username: ${{ github.actor }}
password: ${{ github.token }}
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
# TODO: Workaround because actions/download-artifact can't overwrite existing files
# Check if this workaround can be removed after the following issues are fixed:
# https://github.com/actions/download-artifact/issues/225
# https://github.com/actions/download-artifact/issues/138
- name: Delete flutter_version.json
run: rm config/flutter_version.json
- name: Download artifact with the new Flutter version
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
artifact-ids: ${{ needs.update_flutter_version.outputs.flutter_version_artifact_id }}
path: config
- name: Copy Flutter version into version manifest and export FLUTTER_* environment variables
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
const script = require('./script/copyFlutterVersion.js')
await script({core})
- name: Update latest Fastlane version
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
const script = require('./script/updateFastlaneVersion.js')
await script({core, fetch})
- name: Setup Flutter
run: |
cd $FLUTTER_ROOT
git fetch origin ${{ env.FLUTTER_VERSION }}:${{ env.FLUTTER_VERSION }}
git switch --discard-changes ${{ env.FLUTTER_VERSION }}
# TODO: Create test app in specific folder with step id, to allow parallel execution
- name: Create test application
run: |
flutter create test_app
# TODO: Cache gradle https://github.com/gradle/gradle-build-action
- name: Update default Android platform versions in Flutter
working-directory: test_app/android
run: |
cat ../../script/updateAndroidVersions.gradle.kts >> app/build.gradle.kts
./gradlew --warning-mode all updateAndroidVersions
- name: Clean test application
run: |
rm -rf test_app
- name: Setup CUE
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
with:
repo: cue-lang/cue
tag: v0.15.0
digest: 06925fc1e5174591cef0b1e42ac32cff4271804742cd20893de1793b6d82d460
- name: Generate test files with CUE
run: |
./script/update_test.sh
- name: Upload artifact with the updated version.json
id: upload-version
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: version.json
path: config/version.json
- name: Upload the test artifact for Android
id: upload-android-test
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: android.yml
path: test/android.yml
validate_config_version:
needs: update_android_version
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
# TODO: Workaround because actions/download-artifact can't overwrite existing files
# Check if this workaround can be removed after the following issues are fixed:
# https://github.com/actions/download-artifact/issues/225
# https://github.com/actions/download-artifact/issues/138
- name: Delete version.json
run: rm config/version.json
- name: Download artifact with the new Flutter version
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
artifact-ids: ${{ needs.update_android_version.outputs.version_artifact_id }}
path: config
- name: Setup CUE
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
with:
repo: cue-lang/cue
tag: v0.15.0
digest: 06925fc1e5174591cef0b1e42ac32cff4271804742cd20893de1793b6d82d460
- name: Validate version.json with CUE
run: cue vet config/version.cue -d '#Version' config/version.json
update_docs_and_create_pr:
needs:
- update_flutter_version
- update_android_version
- validate_config_version
runs-on: ubuntu-24.04
env:
IMAGE_REPOSITORY_NAME: flutter-android
VERSION_MANIFEST: config/version.json
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
# TODO: Workaround because actions/download-artifact can't overwrite existing files
# Check if this workaround can be removed after the following issues are fixed:
# https://github.com/actions/download-artifact/issues/225
# https://github.com/actions/download-artifact/issues/138
- name: Delete flutter_version.json and version.json
run: |-
rm config/flutter_version.json config/version.json test/android.yml
- name: Download configuration artifacts
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
artifact-ids: ${{ needs.update_flutter_version.outputs.flutter_version_artifact_id }},${{ needs.update_android_version.outputs.version_artifact_id }}
path: config
# Download to the configured path instead of separated directories by artifact id
merge-multiple: true
- name: Download test artifacts
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
artifact-ids: ${{ needs.update_android_version.outputs.android_test_artifact_id }}
path: test
- name: Setup NodeJS
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
cache: npm
cache-dependency-path: docs/src/package-lock.json
node-version: lts/*
- name: Update documentation
working-directory: docs/src
run: |
npm ci --prefer-offline
npm run build
- name: Read environment variables from the version manifest
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
IMAGE_REPOSITORY_NAME: ${{ env.IMAGE_REPOSITORY_NAME }}
VERSION_MANIFEST: ${{ env.VERSION_MANIFEST }}
with:
script: |
const script = require('./script/setEnvironmentVariables.js')
return await script({ core })
- name: Create commit message variable
run: |
echo "COMMIT_MESSAGE=chore(release): upgrade flutter to ${{ env.FLUTTER_VERSION }}" >> $GITHUB_ENV
- name: Generate authentication token with GitHub App to trigger Actions
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
id: app-token
with:
app-id: ${{ secrets.VERIFIED_COMMIT_ID }}
private-key: ${{ secrets.VERIFIED_COMMIT_KEY }}
repositories: ${{ github.event.repository.name }}
owner: ${{ github.repository_owner }}
# TODO: Generate changelog for the new flutter version, that will be the new tag
- name: Create pull request if there are changes
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
commit-message: ${{ env.COMMIT_MESSAGE }}
branch: update-flutter-dependencies/${{ env.FLUTTER_VERSION }}
sign-commits: true
title: ${{ env.COMMIT_MESSAGE }}
token: ${{ steps.app-token.outputs.token }}
+99
View File
@@ -0,0 +1,99 @@
on:
pull_request:
workflow_dispatch:
# Read-only permissions by default
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
test_windows:
permissions:
# Allow to write packages for the docker/scout-action to write a comment
packages: write
# Allow to write pull requests for the docker/scout-action to write a comment
pull-requests: write
# Allow to write security events for github/codeql-action/upload-sarif to upload SARIF results
security-events: write
runs-on: windows-2025
env:
IMAGE_REPOSITORY_NAME: flutter-android
VERSION_MANIFEST: config/version.json
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Login to Docker Hub
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Read environment variables from the version manifest
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
IMAGE_REPOSITORY_NAME: ${{ env.IMAGE_REPOSITORY_NAME }}
VERSION_MANIFEST: ${{ env.VERSION_MANIFEST }}
with:
script: |
const script = require('./script/setEnvironmentVariables.js')
return await script({ core })
# - name: Load image metadata
# uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
# id: metadata
# with:
# images: |
# ${{ env.IMAGE_REPOSITORY_PATH }}
# tags: |
# type=raw,value=${{ env.FLUTTER_VERSION }}
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
- name: Build image and push to local Docker daemon
shell: powershell
run: |
docker build . -f windows.Dockerfile --build-arg flutter_version=${{ env.FLUTTER_VERSION }} -t ${{ env.IMAGE_REPOSITORY_PATH }}
# - name: Build image and push to local Docker daemon
# uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
# with:
# file: windows.Dockerfile
# load: true
# cache-from: type=gha
# cache-to: type=gha,mode=max
# labels: ${{ steps.metadata.outputs.labels }}
# tags: ${{ steps.metadata.outputs.tags }}
# target: android
# build-args: |
# flutter_version=${{ env.FLUTTER_VERSION }}
# - name: Test image
# uses: plexsystems/container-structure-test-action@c0a028aa96e8e82ae35be556040340cbb3e280ca # v0.3.0
# with:
# image: ${{ fromJSON(steps.metadata.outputs.json).tags[0] }}
# config: test/android.yml
# # TODO: Parallelize testing and vulnerability scanning
# - name: Scan with Docker Scout
# id: docker-scout
# uses: docker/scout-action@0133ff88fe16d4a412dc4827a8fccbccb6b583e0 # v1.16.3
# with:
# command: compare, recommendations
# # Use the Docker Hub image that is the first tag in the metadata
# image: local://${{ fromJson(steps.metadata.outputs.json).tags[0] }}
# # github-token is needed to be able to write the PR comment
# github-token: ${{ github.token }}
# only-fixed: true
# organization: ${{ secrets.DOCKER_HUB_USERNAME }}
# # sarif-file: output.sarif.json
# to-env: prod
# # Enable debug logging when needed
# # debug: true
# # verbose-debug: true
+1 -1
View File
@@ -2,7 +2,7 @@
MIT License
Copyright (c) 2023-2025 Eligio Alejandro Mariño Garcés
Copyright (c) 2023 Eligio Alejandro Mariño Garcés
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+30 -25
View File
@@ -1,19 +1,19 @@
FROM debian:12-slim@sha256:40b107342c492725bc7aacbe93a49945445191ae364184a6d24fedb28172f6f7 AS flutter
FROM debian:13.2-slim@sha256:9812458f2932ede726468ba07bcb9e51bceb1f0c7f16ee30baa789ccee7cc202 AS flutter
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
ENV LANG=C.UTF-8
# renovate: datasource=repology depName=debian_12/curl versioning=loose
ARG CURL_VERSION="7.88.1-10+deb12u8"
# renovate: datasource=repology depName=debian_12/git versioning=loose
ARG GIT_VERSION="1:2.39.5-0+deb12u2"
# renovate: datasource=repology depName=debian_12/lcov versioning=loose
ARG LCOV_VERSION="1.16-1"
# renovate: datasource=repology depName=debian_12/ca-certificates versioning=loose
ARG CA_CERTIFICATES_VERSION="20230311"
# renovate: datasource=repology depName=debian_12/unzip versioning=loose
ARG UNZIP_VERSION="6.0-28"
# renovate: suite=trixie depName=curl
ARG CURL_VERSION="8.14.1-2+deb13u2"
# renovate: suite=trixie depName=git
ARG GIT_VERSION="1:2.47.3-0+deb13u1"
# renovate: suite=trixie depName=lcov
ARG LCOV_VERSION="2.3.1-1"
# renovate: suite=trixie depName=ca-certificates
ARG CA_CERTIFICATES_VERSION="20250419"
# renovate: suite=trixie depName=unzip
ARG UNZIP_VERSION="6.0-29"
USER root
RUN apt-get update \
@@ -58,13 +58,14 @@ ENV PATH="$PATH:$FLUTTER_ROOT/bin:$FLUTTER_ROOT/bin/cache/dart-sdk/bin"
ARG flutter_version
# TODO: Add --depth 1 after https://github.com/flutter/flutter/issues/163198 is fixed
RUN git clone \
--depth 1 \
--branch "$flutter_version" \
https://github.com/flutter/flutter.git \
"$FLUTTER_ROOT" \
&& chown -R flutter:flutter "$FLUTTER_ROOT" \
&& flutter --version \
&& flutter config --no-cli-animations \
&& dart --disable-analytics \
&& flutter config \
--no-cli-animations \
@@ -79,10 +80,10 @@ RUN git clone \
--no-enable-macos-desktop \
&& flutter doctor
COPY --chown=flutter:flutter ./script/docker-entrypoint.sh "$HOME/docker-entrypoint.sh"
RUN chmod +x "$HOME/docker-entrypoint.sh"
COPY --chown=flutter:flutter ./script/docker_linux_entrypoint.sh "$HOME/docker_entrypoint.sh"
RUN chmod +x "$HOME/docker_entrypoint.sh"
ENTRYPOINT [ "/home/flutter/docker-entrypoint.sh" ]
ENTRYPOINT [ "/home/flutter/docker_entrypoint.sh" ]
#-----------------------------------------------
#-----------------------------------------------
@@ -92,14 +93,14 @@ FROM flutter AS fastlane
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
# renovate: datasource=repology depName=debian_12/ruby-dev versioning=loose
ARG RUBY_VERSION="1:3.1"
# renovate: datasource=repology depName=debian_12/build-essential versioning=loose
ENV BUILD_ESSENTIAL_VERSION="12.9"
# renovate: suite=trixie depName=ruby-dev
ARG RUBY_VERSION="1:3.3"
# renovate: suite=trixie depName=build-essential
ENV BUILD_ESSENTIAL_VERSION="12.12"
USER root
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
&& apt-get install -y --no-install-recommends \
# Fastlane dependencies
ruby-full="$RUBY_VERSION" \
build-essential="$BUILD_ESSENTIAL_VERSION" \
@@ -141,19 +142,21 @@ FROM fastlane AS android
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
# TODO: Get JAVA_HOME dinamically from a JDK binary
# TODO: Get JAVA_HOME dinamically from a JDK binary
# TODO: Use `dirname $(dirname $(readlink -f $(which javac)))` after the following issue is fixed
# TODO: https://github.com/moby/moby/issues/29110
ENV ANDROID_HOME="$SDK_ROOT/android-sdk" \
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
ENV PATH="$PATH:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$HOME/.local/bin"
# renovate: datasource=repology depName=debian_12/openjdk-17-jdk-headless versioning=loose
ARG OPENJDK_17_JDK_HEADLESS_VERSION="17.0.14+7-1~deb12u1"
# renovate: datasource=repology depName=debian_12/sudo versioning=loose
ARG SUDO_VERSION="1.9.13p3-1+deb12u1"
# renovate: suite=bookworm depName=openjdk-17-jdk-headless
ARG OPENJDK_17_JDK_HEADLESS_VERSION="17.0.17+10-1~deb12u1"
# renovate: suite=trixie depName=sudo
ARG SUDO_VERSION="1.9.16p2-3"
USER root
# Add debian 12 bookworm repository alongside debian 13 trixie to install Java 17
COPY config/debian_12_bookworm.sources /etc/apt/sources.list.d/debian_12_bookworm.sources
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
# For Android x86 emulators
@@ -171,6 +174,8 @@ RUN apt-get update \
# To allow changing ownership in GitLab CI /builds
sudo="$SUDO_VERSION" \
&& rm -rf /var/lib/apt/lists/* \
# Delete debian 12 bookworm repository after installing Java 17
&& rm /etc/apt/sources.list.d/debian_12_bookworm.sources \
# To allow changing ownership in GitLab CI /builds
&& echo "flutter ALL= NOPASSWD:/bin/chown -R flutter /builds, /bin/chown -R flutter /builds/*" >> /etc/sudoers.d/flutter
+549
View File
@@ -0,0 +1,549 @@
## [3.38.2] - 2025-11-19
### ⚙️ Miscellaneous Tasks
- *(release)* Upgrade flutter to 3.38.2 (#400)
## [3.38.1] - 2025-11-17
### ⚙️ Miscellaneous Tasks
- *(release)* Upgrade flutter to 3.38.1 (#399)
## [3.38.0] - 2025-11-12
### ⚙️ Miscellaneous Tasks
- *(release)* Upgrade flutter to 3.38.0 (#397)
## [3.35.7] - 2025-11-02
### ⚙️ Miscellaneous Tasks
- Use merge-multiple for multiple artifact IDs (#394)
- *(release)* Upgrade flutter to 3.35.7 (#395)
## [3.35.5] - 2025-09-30
### ⚙️ Miscellaneous Tasks
- *(release)* Upgrade flutter to 3.35.5 (#383)
## [3.35.4] - 2025-09-20
### ⚙️ Miscellaneous Tasks
- *(release)* Update flutter dependencies in version.json for 3.35.4 (#381)
## [3.35.3] - 2025-09-05
### ⚙️ Miscellaneous Tasks
- *(release)* Update flutter dependencies in version.json for 3.35.3 (#379)
## [3.35.2] - 2025-08-29
### 📚 Documentation
- Add issue templates (#376)
### ⚙️ Miscellaneous Tasks
- Create CODE_OF_CONDUCT.md (#374)
- *(release)* Update flutter dependencies in version.json for 3.35.2 (#378)
## [3.35.1] - 2025-08-17
### 🐛 Bug Fixes
- *(deps)* Update react monorepo to v19.1.1 (#369)
### ⚙️ Miscellaneous Tasks
- *(release)* Update flutter dependencies in version.json for 3.35.1 (#371)
## [3.32.8] - 2025-07-29
### 🐛 Bug Fixes
- *(deps)* Update dependency cross-env to v10 (#367)
### ⚙️ Miscellaneous Tasks
- *(release)* Update flutter dependencies in version.json for 3.32.8 (#365)
## [3.32.7] - 2025-07-17
### ⚙️ Miscellaneous Tasks
- Build image path to solve "skip output since it may contain secret" (#362)
- *(release)* Update flutter dependencies in version.json for 3.32.7 (#364)
## [3.32.6] - 2025-07-13
### ⚙️ Miscellaneous Tasks
- *(release)* Update flutter dependencies in version.json for 3.32.6 (#361)
## [3.32.5] - 2025-06-26
### ⚙️ Miscellaneous Tasks
- Parse json before output (#354)
- *(release)* Update flutter dependencies in version.json for 3.32.5 (#357)
## [3.32.4] - 2025-06-14
### ⚙️ Miscellaneous Tasks
- Split release workflow into jobs (#352)
- *(release)* Update flutter dependencies in version.json for 3.32.4 (#353)
## [3.32.3] - 2025-06-12
### ⚙️ Miscellaneous Tasks
- Add VERSION_MANIFEST to tag workflow (#349)
- *(release)* Update flutter dependencies in version.json for 3.32.2 (#350)
- *(release)* Update flutter dependencies in version.json for 3.32.3 (#351)
## [3.32.2] - 2025-06-05
### ⚙️ Miscellaneous Tasks
- Split into tag.yml and changelog.yml workflows (#347)
- *(release)* Update flutter dependencies in version.json for 3.32.2 (#348)
## [3.32.1] - 2025-05-30
### ⚙️ Miscellaneous Tasks
- *(release)* Update flutter dependencies in version.json for 3.32.1 (#345)
## [3.32.0] - 2025-05-23
### ⚙️ Miscellaneous Tasks
- Generate changelog with git-cliff (#330)
- Set tools digest to verify integrity (#331)
- Download immutable artifact by id (#337)
- Update artifact download configuration (#342)
- *(release)* Update flutter dependencies in version.json for 3.32.0 (#343)
## [3.29.3] - 2025-04-17
### 🚀 Features
- Build windows image (#314)
### 🐛 Bug Fixes
- *(deps)* Update dependency mdx-to-md to ^0.5.0 (#324)
### 💼 Other
- *(deps)* Bump @babel/runtime (#312)
- Update windows image to ltsc2025 (#317)
- *(deps)* Bump estree-util-value-to-estree from 3.3.2 to 3.3.3 in /docs/src in the npm_and_yarn group across 1 directory (#325)
### 📚 Documentation
- Add table of contents and image table (#323)
### ⚙️ Miscellaneous Tasks
- Single workflow to update versions (#311)
- Get version from parsed JSON (#313)
- Schedule GitHub Actions updates on the first day of the month (#318)
- Upgrade artifact actions to use digest (#319)
- Grant app token only current repository (#320)
- Download-artifact can not overwrite existing files (#327)
- Path is a folder in download-artifact (#328)
- Update flutter dependencies in version.json for 3.29.3 (#329)
## [3.29.2] - 2025-03-15
### ⚙️ Miscellaneous Tasks
- Generate tag with Github App token to trigger Actions (#305)
- Run pr build only from latest commit (#306)
- Upgrade actions only for new major or minor versions (#308)
- Update flutter version in flutter_version.json to 3.29.2 (#309)
- Update flutter dependencies in version.json for 3.29.2 (#310)
## [3.29.1] - 2025-03-09
### 🐛 Bug Fixes
- Use github context because octokit is not available (#293)
### 💼 Other
- Replace yq with cue to reduce tool dependencies (#296)
### 📚 Documentation
- Mention Flutter license (#301)
### ⚙️ Miscellaneous Tasks
- Split ci and release workflows (#291)
- Checkout repository (#292)
- Read environment variables in create_git_tag (#294)
- Define VERSION_MANIFEST at workflow level (#295)
- Replace jq with cue to reduce tool dependencies (#297)
- Use deb renovate datasource instead of repology (#300)
- Update flutter version in flutter_version.json to 3.29.1 (#302)
- Discard changes to flutter source code when switching tags (#303)
- Update flutter dependencies in version.json for 3.29.1 (#304)
## [3.29.0] - 2025-02-17
### 🐛 Bug Fixes
- Update version.json path
- Remove annotation CompileDynamic
- Remove ecr registry
- Don't print message on entrypoint to allow initial calls from CI systems (#155)
### 💼 Other
- Move Dockerfile to root
- Remove locale env and update regex and update git version
- Create flutter base image and then android
- Set non-root user as flutter
- Flutter downloads obsolete Android SDK Tools (revision: 26.1.1)
- Add entrypoint to change ownership of CI_PROJECT_DIR
- Leave sudo but remove entrypoint
- Add logical and before modifying sudoers
- Add pattern /builds/* to sudoers
- Add image opencontainers labels
- Set JAVA_HOME
- Explicitly set java home
- Join env statements
- Add multiple platform versions
- Use platforms_versions
- Do not quote array of arguments in build args
- Upgrade curl to 7.81.0-1ubuntu1.8
- Upgrade openjdk-11-jdk to 11.0.18+10-0ubuntu1~22.04 and sudo to 1.9.9-1ubuntu2.2
- Add ENABLE_ANALYTICS to entrypoint
- Upgrade curl to 7.81.0-1ubuntu1.10
- Update sudo to 1.9.9-1ubuntu2.4
- Add repology source ubuntu 22:04
- Remove os specifc versioning
- Fix typo between curl and git
- Fix ubuntu package names
- Upgrade git to 2.34.1-1ubuntu1.8
- Add args for openjdk and sudo
- Make entrypoint executable
- Copy entrypoint with flutter user permissions
- Upgrade openjdk-11-jdk to 11.0.19+7~us1-0ubuntu1~22.04.1
- Chmod entrypoint
- Migrate to openjdk-11-jdk-headless
- Migrate to JRE with openjdk-11-jre-headless
- Restore openjdk-11-jdk-headless
- Uncomment flutter installation
- Switch to debian/debian:11-slim
- Add cross-env
- Add fastlane stage
- Install fastlane with bundler
- Update dependencies versions in manifest with flutter 3.13.0' (#33)
- Upgrade to openjdk 17 to 17.0.7+7-1~deb11u1 (#37)
- Upgrade to debian 12 (#78)
- Change debian registry to docker hub (#90)
- Upgrade openjdk-17-jdk-headless to 17.0.10+7-1~deb12u1 (#158)
- Join parsed platform versions with space
- *(deps)* Bump braces (#196)
- *(deps)* Bump cross-spawn from 7.0.3 to 7.0.6 in /docs/src in the npm_and_yarn group across 1 directory (#267)
- *(deps)* Bump esbuild (#285)
- Remove --depth 1 from git clone in Dockerfile (#287)
### 🚜 Refactor
- Format version.json with prettier
- Update renovate according to validator (#122)
- Migrate Android version update script to Kotlin DSL and remove Groovy version (#288)
### 📚 Documentation
- Add todo to get latest versions
- Clarify readme
- Leave registry link only
- Add mdx readme
- Update readme.mdx
- Add license
- Add url to badges
- Delete images.json
- Reorganize readme
- Mention gitlab ci yaml
- Render docs
- Update tool versions
- Rename usage to getting started
- Add source repository
- Reorganize readme
- Add interpolating expressions and className to code blocks
- Replace triple backtick with pre code block to remove exceeding line
- Delete unused sha from readme
- Explain more why not latest
- Split readme and ecr about
- Add fastlane related project
- Change wording of related projects
- Remove todo URLs from Dockerfile
- Add command to render both docs
- Add channel badge
- Update android badges
- Add space after first badge
- Use .com github domain
- Group sections related to features (#42)
- Update documents (#233)
- Update license path (#234)
- Add a security policy (#238)
- Add openssf scorecard (#241)
- Reorganize sections in readme.md (#264)
### 🧪 Testing
- Add test_app
- Add test commands for downloads
- Increase timeout to 4m
- Verify analytics are disabled
- Check dart and flutter analytics are disabled
- Fastlane can run lanes
- Update expected android sdk command line tools to version 11.0 (#38)
- Gradle can have a patch version
- Platforms can have multiple versions
### ⚙️ Miscellaneous Tasks
- Add example workflow
- Sync after commit in vscode
- Move scripts to a new directory
- Build and push to ecr
- Add variable IMAGE_REPOSITORY_TAG
- Update scripts
- Give write permission to packages to github token
- Give read permission to contents to github token
- Use variables for container registries
- Use kaniko to build and push
- Upgrade flutter to 3.7.3
- Add --use-new-run to kaniko
- Use --snapshotMode=redo in kaniko
- Upgrade flutter to 3.7.4
- Add env variables FLUTTER_VERSION and ANDROID_BUILD_TOOLS_VERSION
- Add env variable PLATFORMS_VERSIONS
- Read version json
- Read version.json
- Add outputs
- Format echo
- Use release version in action zoexx/github-action-json-file-properties
- Echo all outputs
- Print all outputs
- Output only flutter
- FromJson version and commit
- Use fromJson in flutter_version
- Add github action for graphql
- Updating github-token to GH_API_TOKEN
- Log more output
- Keep only latest tag
- Unescape regex
- Write latest tag to file
- Add property node
- Read current version json
- Create pull request
- Add permissions for create pull request
- Add flutter version to tag
- Add variable env.FLUTTER_VERSION
- Setup flutter
- Use fromJson
- Create test app
- Running gradlew
- Add extension to updateAndroidPlatform.gradle
- Use forward slash for path separator
- Restore create pull request
- Clean test app
- Run on every day
- Push to docker hub
- Push to quay
- Load image metadata with docker/metadata-action
- Use raw tags in metadata
- Get last 20 tags to increase change of matching regex
- Add renovate
- Change ENV to ARG in renovate
- Disable docker major updates
- Disable docker minor update
- Pin version of ca-certificates
- Add version epoch to git ubuntu version
- Add environment variable GITHUB_SHORT_SHA
- Use snapshotMode redo in kaniko
- Update openjdk-11-jre-headless in renovate annotation
- Update gradle version
- Rename gradle script to updateAndroidVersions
- Delete unused test_app
- Show platform versions
- Use jq to extract variables from version.json
- Add xargs to convert multiline string to string with spaces
- Migrate to docker/build-push-action to allow testing image
- Setup buildx with docker/setup-buildx-action
- Use ghcr for image cache
- Test image structure
- Add build args and cache to local docker image
- Setup docker buildx before testing image
- Add target android
- Change path triggers
- Update docs after version
- Set the docs path to docs/src
- Add npm cache to documentation update job
- Change setup-node path
- Change working directory for update android versions
- Update docker hub description
- Fix gradle script path
- Update ecr repository description
- Use preinstalled jq in github actions
- Remove exceeding single quote
- Remove sha from tag
- Export flutter version from javascript
- Check in which channel the tag exists
- Remove semicolon
- Move github script to script directory
- Fix typo in script directory
- Reorganize files to clean root directory
- Add variable CACHE_REPOSITORY_PATH
- Rename android test to bundle test
- Update fastlane version
- Log version
- Await json
- Initialize data in js
- Require fs
- Increase tags returned from query to 60
- Add flutter-version to renovate.json
- Add flutter regex to renovate
- Use recursive matchStringsStrategy for flutter-version
- Escape dot in fileMatch regex
- Set config directory for flutter version
- Remove recursive strategy from renovate
- Split update workflow into flutter and dependencies
- Declare version variable
- Add workflow_dispatch trigger
- Correct flutter version to 3.10.6
- Update trigger to flutter_version
- Run update_flutter_dependencies after pr is merged
- Change automatic pr title
- Add other trigger to job if
- Move paths to pull request event (#31)
- Override version json with flutter version (#32)
- Use gitsign to sign commits in github workflows (#34)
- Add tag chainguard-dev/actions/setup-gitsign@main (#35)
- Update openjdk11 to 11.0.20+8-1~deb11u1 (#36)
- Use commit sha for github action versions (#39)
- Trigger workflow on push to main instead of pr closed (#41)
- Search in releases json file instead of github query (#43)
- LinuxReleasesResponse variable (#44)
- Use volta to reproduce nodejs version (#45)
- Get node version from package.json (#47)
- Merge old and new maps in gradle (#48)
- Use putAll to merge maps (#49)
- Validate json schema with cue (#50)
- Update dependencies versions in manifest with flutter 3.13.1 (#51)
- Update dependencies versions in manifest with flutter 3.13.1 (#54)
- Remove quote from pr title (#53)
- Update dependencies versions in manifest with flutter 3.13.2 (#57)
- Update dependencies versions in manifest with flutter 3.13.2 (#58)
- Update dependencies versions in manifest with flutter 3.13.3 (#62)
- Update dependencies versions in manifest with flutter 3.13.3 (#64)
- Pin cue-lang/setup-cue action to digest (#66)
- Update dependencies versions in manifest with flutter 3.13.4 (#72)
- Update dependencies versions in manifest with flutter 3.13.4 (#73)
- Add workflow for changes that affect the dockerfile (#77)
- Automerge chainguard digest changes (#79)
- Update dependencies versions in manifest with flutter 3.13.4 (#80)
- Change action host os to ubuntu-22.04 (#81)
- Change setup-flutter action to follow tag v2.2 (#82)
- Update dependencies versions in manifest with flutter 3.13.5 (#86)
- Update dependencies versions in manifest with flutter 3.13.5 (#87)
- Ignore .vscode folder (#89)
- Add renovate groups (#94)
- Update dependencies versions in manifest with flutter 3.13.6 (#95)
- Update dependencies versions in manifest with flutter 3.13.6 (#96)
- Rename jobs to separate status checks (#97)
- Update path of readme.md (#100)
- Update dependencies versions in manifest with flutter 3.13.7 (#101)
- Update dependencies versions in manifest with flutter 3.13.7 (#102)
- Update pull request titles created with action (#103)
- Update flutter version in flutter_version.json to 3.13.8 (#107)
- Use GH_APP_TOKEN to trigger workflows on created pull requests (#109)
- Update flutter dependencies in version.json for 3.13.8 (#108)
- Update flutter version in flutter_version.json to 3.13.9 (#112)
- Update flutter dependencies in version.json for 3.13.9 (#113)
- Update flutter version in flutter_version.json to 3.16.0 (#120)
- Update flutter dependencies in version.json for 3.16.0 (#121)
- Update flutter version in flutter_version.json to 3.16.1 (#129)
- Update flutter dependencies in version.json for 3.16.1 (#130)
- Update flutter version in flutter_version.json to 3.16.2 (#131)
- Update flutter dependencies in version.json for 3.16.2 (#132)
- Run renovate monthly (#134)
- Update flutter version in flutter_version.json to 3.16.3 (#135)
- Update flutter dependencies in version.json for 3.16.3 (#136)
- Update flutter version in flutter_version.json to 3.16.4 (#137)
- Update flutter dependencies in version.json for 3.16.4 (#138)
- Update flutter version in flutter_version.json to 3.16.5 (#139)
- Update flutter dependencies in version.json for 3.16.5 (#140)
- Update flutter version in flutter_version.json to 3.16.6 (#143)
- Update flutter dependencies in version.json for 3.16.6 (#144)
- Update flutter version in flutter_version.json to 3.16.7 (#145)
- Update flutter dependencies in version.json for 3.16.7 (#146)
- Update flutter version in flutter_version.json to 3.16.8 (#147)
- Update flutter dependencies in version.json for 3.16.8 (#148)
- Update flutter version in flutter_version.json to 3.16.9 (#149)
- Update flutter dependencies in version.json for 3.16.9 (#150)
- Run build if entrypoint changes (#156)
- Split config validation (#157)
- Check if files were changed (#159)
- Update flutter version in flutter_version.json to 3.19.0 (#160)
- Update flutter dependencies in version.json for 3.19.0 (#163)
- Update flutter version in flutter_version.json to 3.19.1 (#165)
- Update flutter dependencies in version.json for 3.19.1 (#166)
- Update flutter version in flutter_version.json to 3.19.2 (#167)
- Update flutter dependencies in version.json for 3.19.2 (#168)
- Update cron schedule to run only on weekdays (#173)
- Update flutter version in flutter_version.json to 3.19.3 (#174)
- Update flutter dependencies in version.json for 3.19.3 (#175)
- Update flutter version in flutter_version.json to 3.19.4 (#176)
- Update flutter dependencies in version.json for 3.19.4 (#177)
- Update flutter version in flutter_version.json to 3.19.5 (#178)
- Update flutter dependencies in version.json for 3.19.5 (#179)
- Update flutter version in flutter_version.json to 3.19.6 (#182)
- Update flutter dependencies in version.json for 3.19.6 (#183)
- Update flutter version in flutter_version.json to 3.22.0 (#186)
- Update flutter dependencies in version.json for 3.22.0 (#187)
- Update flutter version in flutter_version.json to 3.22.1 (#188)
- Update flutter dependencies in version.json for 3.22.1 (#189)
- Update flutter version in flutter_version.json to 3.22.2 (#192)
- Update flutter dependencies in version.json for 3.22.2 (#193)
- Update flutter dependencies in version.json for 3.22.2 (#197)
- Update flutter version in flutter_version.json to 3.22.3 (#202)
- Update flutter dependencies in version.json for 3.22.3 (#203)
- Update fastlane in version.json for 3.22.3 (#206)
- Upgrade peter-evans/create-pull-request to v6 (#207)
- Upgrade cue-lang/setup-cue to v1.0.1 (#208)
- Upgrade cue-lang/setup-cue to v1.0.1 in other workflows (#209)
- Update flutter version in flutter_version.json to 3.24.0 (#210)
- Update flutter dependencies in version.json for 3.24.0 (#211)
- Update flutter version in flutter_version.json to 3.24.1 (#212)
- Update flutter dependencies in version.json for 3.24.1 (#213)
- Use github integration for docker buildx cache (#218)
- Add docker/scout-action to compare differences (#219)
- Record only docker hub image (#220)
- Scout compare (#221)
- Pin docker/scount-action (#226)
- Update flutter version in flutter_version.json to 3.24.2 (#227)
- Run job in ghcr.io/gmeligio/flutter-android image (#228)
- Update flutter dependencies in version.json for 3.24.2 (#229)
- Update repo flutter version after pushing new image (#230)
- Update flutter version in flutter_version.json to 3.24.3 (#231)
- Update flutter dependencies in version.json for 3.24.3 (#232)
- Add scorecard (#235)
- Set default permission to contents:read (#236)
- Add CODEOWNERS (#237)
- Upload docker hub CVEs to code scanning (#239)
- Pin yq action with sha (#240)
- Show only fixable CVEs (#242)
- Update flutter dependencies in version.json for 3.24.3 (#247)
- Unify PR workflows into build.yml (#248)
- Rename build_and_push workflow to release (#249)
- Update flutter dependencies in version.json for 3.24.3 (#250)
- Update flutter version in flutter_version.json to 3.24.4 (#251)
- Update flutter dependencies in version.json for 3.24.4 (#252)
- Run renovate weekly to keep low noise with prHourlyLimit 2 (#255)
- Update flutter version in flutter_version.json to 3.24.5 (#262)
- Update flutter dependencies in version.json for 3.24.5 (#263)
- Update flutter version in flutter_version.json to 3.27.0 (#270)
- Update flutter dependencies in version.json for 3.27.0 (#271)
- Update flutter version in flutter_version.json to 3.27.1 (#272)
- Update flutter dependencies in version.json for 3.27.1 (#273)
- Update flutter version in flutter_version.json to 3.27.2 (#276)
- Update flutter dependencies in version.json for 3.27.2 (#277)
- Update flutter version in flutter_version.json to 3.27.3 (#279)
- Update flutter dependencies in version.json for 3.27.3 (#280)
- Update flutter version in flutter_version.json to 3.27.4 (#282)
- Update flutter dependencies in version.json for 3.27.4 (#283)
- Update flutter version in flutter_version.json to 3.29.0 (#286)
- Update flutter dependencies in version.json for 3.29.0 (#289)
+66
View File
@@ -0,0 +1,66 @@
package config
import "list"
#CommandTests: {
name: _
setup?: _
teardown?: _
command: _
args: _
expectedOutput?: [string]
excludedOutput?: _
}
#FileContentTests: {
name: string
path: _
expectedContents: [string]
}
#ContainerStructureTest: {
schemaVersion: _
commandTests: [...#CommandTests]
fileContentTests: [...#FileContentTests]
}
input: #ContainerStructureTest
android_cmdline_tools_test_expected_content: string @tag(android_cmdline_tools_test_expected_content)
android_cmdline_tools_version: string @tag(android_cmdline_tools_version)
android_ndk_version: string @tag(android_ndk_version)
android_sdk_build_tools_version: string @tag(android_sdk_build_tools_version)
output: {
schemaVersion: input.schemaVersion
commandTests: list.Concat([
list.Take(input.commandTests, 1),
[
{
name: input.commandTests[1].name
command: input.commandTests[1].command
args: input.commandTests[1].args
expectedOutput: [android_sdk_build_tools_version]
},
{
name: input.commandTests[2].name
command: input.commandTests[2].command
args: input.commandTests[2].args
expectedOutput: [android_ndk_version]
}
],
list.Drop(input.commandTests, 3),
])
fileContentTests: list.Concat([
if len(input.fileContentTests) > 0 {
[{
name: "Android SDK Command-line Tools is version \(android_cmdline_tools_version)"
path: input.fileContentTests[0].path
expectedContents: [android_cmdline_tools_test_expected_content]
}],
},
list.Drop(input.fileContentTests, 1),
])
}
+13
View File
@@ -0,0 +1,13 @@
# Add debian 12 bookworm repository alongside debian 13 trixie to install Java 17
Types: deb
URIs: http://deb.debian.org/debian
Suites: bookworm bookworm-updates
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Types: deb
URIs: http://deb.debian.org/debian-security
Suites: bookworm-security
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
+2 -2
View File
@@ -1,7 +1,7 @@
{
"flutter": {
"channel": "stable",
"commit": "35c388afb57ef061d06a39b537336c87e0e3d1b1",
"version": "3.29.0"
"commit": "f5a8537f90d143abd5bb2f658fa69c388da9677b",
"version": "3.38.2"
}
}
+19 -12
View File
@@ -13,20 +13,27 @@ import "list"
version!: =~ "^\\d+.\\d+.\\d+$"
}
#FlutterVersion: {
flutter: {
channel!: "stable" | "beta"
commit!: strings.MaxRunes(40)
#PatchVersion
}
}
#MinorOrPatchVersion: #MinorVersion | #PatchVersion
flutter: {
channel!: "stable" | "beta"
commit!: strings.MaxRunes(40)
#PatchVersion
}
#Version: {
#FlutterVersion
android: {
platforms!: [...#PlatformVersion] & list.MinItems(1) & list.UniqueItems
gradle!: #MinorOrPatchVersion
buildTools!: #PatchVersion
cmdlineTools!: #MinorVersion
}
android: {
platforms!: [...#PlatformVersion] & list.MinItems(1) & list.UniqueItems
gradle!: #MinorOrPatchVersion
buildTools!: #PatchVersion
cmdlineTools!: #MinorVersion
ndk!: #PatchVersion
cmake!: #PatchVersion
}
fastlane!: #PatchVersion
fastlane!: #PatchVersion
}
+8 -8
View File
@@ -1,32 +1,32 @@
{
"flutter": {
"channel": "stable",
"commit": "35c388afb57ef061d06a39b537336c87e0e3d1b1",
"version": "3.29.0"
"commit": "f5a8537f90d143abd5bb2f658fa69c388da9677b",
"version": "3.38.2"
},
"android": {
"platforms": [
{
"version": 35
"version": 36
}
],
"gradle": {
"version": "8.10.2"
"version": "8.14"
},
"buildTools": {
"version": "34.0.0"
"version": "35.0.0"
},
"cmdlineTools": {
"version": "12.0"
"version": "19.0"
},
"ndk": {
"version": "26.3.11579264"
"version": "28.2.13676358"
},
"cmake": {
"version": "3.22.1"
}
},
"fastlane": {
"version": "2.226.0"
"version": "2.228.0"
}
}
+8 -3
View File
@@ -1,7 +1,7 @@
services:
flutter:
build:
context: .
dockerfile: ./android.Dockerfile
target: flutter
args:
flutter_version: $FLUTTER_VERSION
@@ -10,7 +10,6 @@ services:
fastlane:
build:
context: .
target: fastlane
args:
flutter_version: $FLUTTER_VERSION
@@ -20,7 +19,7 @@ services:
android:
build:
context: .
dockerfile: ./android.Dockerfile
target: android
args:
flutter_version: $FLUTTER_VERSION
@@ -31,3 +30,9 @@ services:
cmake_version: $CMAKE_VERSION
environment:
ENABLE_ANALYTICS: $ENABLE_ANALYTICS
windows:
build:
dockerfile: ./windows.Dockerfile
args:
flutter_version: $FLUTTER_VERSION
+7 -1
View File
@@ -6,4 +6,10 @@
When adding new Github Actions the `.github\renovate.json` needs to be checked and add the new action to:
* the automerge array if it's not an important action
* the automerge array if it's not an important action
### Dockerfile stages
1. `flutter` stage hast only the dependencies required to install flutter and common tools used by flutter internal commands, like `git`.
2. `fastlane` stage has the dependencies required to install fastlane but doesn't install fastlane.
3. `android` stage has the dependencies required to install the Android SDK and to develop Flutter apps for Android.
+31
View File
@@ -0,0 +1,31 @@
import { writeFile } from 'node:fs/promises'
import { mdxToMd } from 'mdx-to-md'
import { resolve } from 'node:path'
import remarkGfm from 'remark-gfm'
import remarkToc from 'remark-toc'
/**
* @see https://github.com/kentcdodds/mdx-bundler?tab=readme-ov-file#mdxoptions
*/
function mdxOptions(options) {
options.remarkPlugins = [
...(options.remarkPlugins ?? []),
remarkGfm,
remarkToc,
]
return options
}
const args = process.argv.slice(2)
const sourceRelativePath = args[0]
const outputRelativePath = args[1]
const markdown = await mdxToMd(resolve(sourceRelativePath), {
mdxOptions,
})
const banner = `This markdown file was auto-generated from "${sourceRelativePath}"`
const readme = `<!--- ${banner} -->\n\n${markdown}`
await writeFile(outputRelativePath, readme)
console.log(`📝 Converted ${sourceRelativePath} -> ${outputRelativePath}`)
+48 -66
View File
@@ -5,7 +5,9 @@ export const androidJson = versionJson.android
export const gradleVersion = androidJson.gradle.version
export const buildToolsVersion = androidJson.buildTools.version
export const repositoryPath = 'gmeligio/flutter-android'
export const imageUri = `${repositoryPath}:${flutterVersion}`
export const dockerHubUri = `${repositoryPath}:${flutterVersion}`
export const githubUri = `ghcr.io/${dockerHubUri}`
export const quayUri = `quay.io/${dockerHubUri}`
export const androidPlatformVersions = androidJson.platforms.map(p => p.version).join(', ')
export const androidNdkVersion = androidJson.ndk.version
export const dockerHubUrl = `https://hub.docker.com/r/${repositoryPath}`
@@ -17,6 +19,8 @@ Docker images for Flutter Continuous Integration (CI). The source is available [
The images includes the minimum tools to run Flutter and build apps. The versions of the tools installed are based on the official [Flutter](https://github.com/flutter/flutter) repository. The final goal is that Flutter doesn't need to download anything like tools or SDKs when running the container.
## Contents
## Features
- Installed Flutter SDK {flutterVersion}.
@@ -32,50 +36,40 @@ Predownloaded SDKs and tools in Android:
- Android NDK: {androidNdkVersion}
- Gradle: {gradleVersion}
## Alpha Stability
The images are experimental and are in active development. They are being used for small projects but there is no confirmation of production usage yet.
## Running Containers
Registries:
- <a href={dockerHubUrl}>Docker Hub</a>
- [Github Container Registry](https://github.com/gmeligio/flutter-docker-image/pkgs/container/flutter-android)
- <a href={quayUrl}>Quay</a>
| Registry | flutter-android |
|---------------------------|--------------------------------------------------------|
| Docker Hub | <a href={dockerHubUrl}>{dockerHubUri}</a> |
| GitHub Container Registry | <a href="https://github.com/gmeligio/flutter-docker-image/pkgs/container/flutter-android">{githubUri}</a> |
| Quay | <a href={quayUrl}>{quayUri}</a> |
On the terminal:
<pre><code className="language-bash">
{`# From Docker Hub
docker run --rm -it ${imageUri} bash
# From GitHub Container Registry
docker run --rm -it ghcr.io/${imageUri} bash
# From Quay.io
docker run --rm -it quay.io/${imageUri} bash`}
{`# From GitHub Container Registry
docker run --rm -it ${githubUri} bash`}
</code></pre>
On a workflow in GitHub Actions:
<pre><code className="language-yaml">
{`jobs:
build:
runs-on: ubuntu-22.04
container:
image: ghcr.io/${imageUri}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: flutter build apk`}
build:
runs-on: ubuntu-22.04
container:
image: ${githubUri}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: flutter build apk`}
</code></pre>
On a `.gitlab-ci.yml` in GitLab CI:
<pre><code className="language-yaml">
{`build:
image: ghcr.io/${imageUri}
script:
- flutter build apk`}
image: ${githubUri}
script:
- flutter build apk`}
</code></pre>
Fastlane:
@@ -89,45 +83,37 @@ bundle install --prefer-local
bundle exec fastlane`}
</code></pre>
## Versions
## Tags
There is no `latest` Docker tag on purpose. You need to specify the version of the image you want to use. The reason for that is that `latest` is a dynamic tag that can be confusing when reading the image URI because doesn't necessarily point to the latest image built and can cause unexpected behavior when rerunning a past CI job that runs with an overwritten latest tags. There are multiple articles explaining more about this reasoning like [What's Wrong With The Docker :latest Tag?](https://vsupalov.com/docker-latest-tag/) and [The misunderstood Docker tag: latest](https://medium.com/@mccode/the-misunderstood-docker-tag-latest-af3babfd6375).
The tag is composed of the Flutter version used to build the image. For example:
- Docker image: {imageUri}
Every new tag on the flutter stable channel gets built. The tag is composed of the Flutter version used to build the image:
- Docker image: {dockerHubUri}
- Flutter version: {flutterVersion}
## Developing Locally
## Building Locally
### Running The Container
The android.Dockerfile expects a few arguments:
The Dockerfile expects a few parameters:
- `flutter_version <string>`: The version of Flutter to use when building. Example: {flutterVersion}
- `android_build_tools_version <string>`: The version of the Android SDK Build Tools to install. Example: {buildToolsVersion}
- `android_platform_versions <list>`: The versions of the Android SDK Platforms to install, separated by spaces. Example: 28 31 33
- `android_platform_versions <list>`: The versions of the Android SDK Platforms to install, separated by spaces. Example: {androidPlatformVersions}
<pre><code className="language-bash">
{`# Android
docker build --target android --build-arg flutter_version=${flutterVersion} --build-arg fastlane_version=${fastlaneVersion} --build-arg android_build_tools_version=${buildToolsVersion} --build-arg android_platform_versions="${androidPlatformVersions}" -t android-test .`}
</code></pre>
### Dockerfile stages
The base image is `debian/debian:12-slim` and from there multiple stages are created:
1. `flutter` stage hast only the dependencies required to install flutter and common tools used by flutter internal commands, like `git`.
1. `fastlane` stage has the dependencies required to install fastlane but doesn't install fastlane.
1. `android` stage has the dependencies required to install the Android SDK and to develop Flutter apps for Android.
## Roadmap
- Minimal image with predownloaded SDKs and tools ready to run `flutter` commands for the platforms:
- [ ] iOS
- [ ] Linux
- [ ] Windows
- [ ] Web
- iOS
- Linux
- Windows
- Web
- Android features:
- [ ] Android emulator
- Android emulator
## FAQ
@@ -135,24 +121,20 @@ The base image is `debian/debian:12-slim` and from there multiple stages are cre
The storage of the images starts to cost after 50 GB and increases with every pushed image because the AWS Free Tier covers up to 50 GB of total storage for free in ECR Public.
### Why there is no dynamic tag like `latest`?
There is no `latest` Docker tag on purpose. You need to specify the version of the image you want to use. The reason for that is that `latest` can cause unexpected behavior when rerunning a past CI job that was expected to use the old build of the `latest` tag. There are multiple articles explaining more about this reasoning like [What's Wrong With The Docker :latest Tag?](https://vsupalov.com/docker-latest-tag/) and [The misunderstood Docker tag: latest](https://medium.com/@mccode/the-misunderstood-docker-tag-latest-af3babfd6375).
## Contributing
See [Contributing](docs/contributing.md).
## Other Docker projects for mobile development
- [docker-android-fastlane](https://github.com/softartdev/docker-android-fastlane)
## Acknowledgments
- [docker-android-build-box](https://github.com/mingchen/docker-android-build-box)
- [flutter-fastlane-android](https://github.com/gmemstr/flutter-fastlane-android)
- [circleci-images](https://github.com/circleci/circleci-images)
- [docker-images-android](https://github.com/cirruslabs/docker-images-android)
- [docker-images-flutter](https://github.com/cirruslabs/docker-images-flutter)
- [flutter-docker-image](https://github.com/instrumentisto/flutter-docker-image)
- [DockerFlutter](https://github.com/fischerscode/DockerFlutter)
## License
[MIT License](LICENSE.md)
Flutter is licensed under [BSD 3-Clause "New" or "Revised" license](https://github.com/flutter/flutter/blob/master/LICENSE).
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
The [sources](https://github.com/gmeligio/flutter-docker-image) for producing {repositoryPath} Docker images are licensed under [MIT License](LICENSE.md).
+6
View File
@@ -5,3 +5,9 @@
When adding new Github Actions the `.github\renovate.json` needs to be checked and add the new action to:
- the automerge array if it's not an important action
### Dockerfile stages
1. `flutter` stage hast only the dependencies required to install flutter and common tools used by flutter internal commands, like `git`.
2. `fastlane` stage has the dependencies required to install fastlane but doesn't install fastlane.
3. `android` stage has the dependencies required to install the Android SDK and to develop Flutter apps for Android.
+2 -4
View File
@@ -1,8 +1,6 @@
export const year = new Date().getFullYear()
MIT License
Copyright (c) 2023-{year} Eligio Alejandro Mariño Garcés
Copyright (c) 2023 Eligio Alejandro Mariño Garcés
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -20,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
+7802 -2878
View File
File diff suppressed because it is too large Load Diff
+32 -20
View File
@@ -1,22 +1,34 @@
{
"name": "doc",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "npm run readme && npm run contributing && npm run license",
"readme": "cross-env NODE_ENV=production mdx-to-md readme.mdx ../../readme.md",
"license": "cross-env NODE_ENV=production mdx-to-md license.mdx ../../LICENSE.md",
"contributing": "cross-env NODE_ENV=production mdx-to-md contributing.mdx ../contributing.md",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"cross-env": "^7.0.3",
"mdx-to-md": "^0.3.2"
},
"volta": {
"node": "22.14.0"
}
"name": "doc",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"build": "npm run readme && npm run contributing && npm run license",
"readme": "cross-env NODE_ENV=production node compile.js readme.mdx ../../readme.md",
"license": "cross-env NODE_ENV=production node compile.js license.mdx ../../LICENSE.md",
"contributing": "cross-env NODE_ENV=production node compile.js contributing.mdx ../contributing.md",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"cross-env": "^10.0.0",
"mdx-to-md": "^0.5.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"remark-gfm": "^4.0.1",
"remark-toc": "^9.0.0"
},
"devEngines": {
"runtime": {
"name": "node",
"onFail": "error"
},
"packageManager": {
"name": "npm",
"onFail": "error"
}
}
}
+52 -65
View File
@@ -8,44 +8,47 @@ Docker images for Flutter Continuous Integration (CI). The source is available [
The images includes the minimum tools to run Flutter and build apps. The versions of the tools installed are based on the official [Flutter](https://github.com/flutter/flutter) repository. The final goal is that Flutter doesn't need to download anything like tools or SDKs when running the container.
## Contents
* [Features](#features)
* [Running Containers](#running-containers)
* [Tags](#tags)
* [Building Locally](#building-locally)
* [Roadmap](#roadmap)
* [FAQ](#faq)
* [Why the images are not published in the AWS ECR Public registry?](#why-the-images-are-not-published-in-the-aws-ecr-public-registry)
* [Why there is no dynamic tag like latest?](#why-there-is-no-dynamic-tag-like-latest)
* [Contributing](#contributing)
* [License](#license)
## Features
* Installed Flutter SDK 3.29.0.
* Installed Flutter SDK 3.38.2.
* Analytics disabled by default, opt-in if `ENABLE_ANALYTICS` environment variable is passed when running the container.
* Rootless user `flutter:flutter`, with permissions to run on Github workflows and GitLab CI.
* Cached Fastlane gem 2.226.0.
* Cached Fastlane gem 2.228.0.
* Minimal image with predownloaded SDKs and tools ready to run `flutter` commands for the Android platform.
Predownloaded SDKs and tools in Android:
* Licenses accepted
* Android SDK Platforms: 35
* Android NDK: 26.3.11579264
* Gradle: 8.10.2
## Alpha Stability
The images are experimental and are in active development. They are being used for small projects but there is no confirmation of production usage yet.
* Android SDK Platforms: 36
* Android NDK: 28.2.13676358
* Gradle: 8.14
## Running Containers
Registries:
* [Docker Hub](https://hub.docker.com/r/gmeligio/flutter-android)
* [Github Container Registry](https://github.com/gmeligio/flutter-docker-image/pkgs/container/flutter-android)
* [Quay](https://quay.io/repository/gmeligio/flutter-android)
| Registry | flutter-android |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| Docker Hub | [gmeligio/flutter-android:3.38.2](https://hub.docker.com/r/gmeligio/flutter-android) |
| GitHub Container Registry | [ghcr.io/gmeligio/flutter-android:3.38.2](https://github.com/gmeligio/flutter-docker-image/pkgs/container/flutter-android) |
| Quay | [quay.io/gmeligio/flutter-android:3.38.2](https://quay.io/repository/gmeligio/flutter-android) |
On the terminal:
```bash
# From Docker Hub
docker run --rm -it gmeligio/flutter-android:3.29.0 bash
# From GitHub Container Registry
docker run --rm -it ghcr.io/gmeligio/flutter-android:3.29.0 bash
# From Quay.io
docker run --rm -it quay.io/gmeligio/flutter-android:3.29.0 bash
docker run --rm -it ghcr.io/gmeligio/flutter-android:3.38.2 bash
```
On a workflow in GitHub Actions:
@@ -55,7 +58,7 @@ jobs:
build:
runs-on: ubuntu-22.04
container:
image: ghcr.io/gmeligio/flutter-android:3.29.0
image: ghcr.io/gmeligio/flutter-android:3.38.2
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -67,7 +70,7 @@ On a `.gitlab-ci.yml` in GitLab CI:
```yaml
build:
image: ghcr.io/gmeligio/flutter-android:3.29.0
image: ghcr.io/gmeligio/flutter-android:3.38.2
script:
- flutter build apk
```
@@ -84,47 +87,35 @@ bundle install --prefer-local
bundle exec fastlane
```
## Versions
## Tags
There is no `latest` Docker tag on purpose. You need to specify the version of the image you want to use. The reason for that is that `latest` is a dynamic tag that can be confusing when reading the image URI because doesn't necessarily point to the latest image built and can cause unexpected behavior when rerunning a past CI job that runs with an overwritten latest tags. There are multiple articles explaining more about this reasoning like [What's Wrong With The Docker :latest Tag?](https://vsupalov.com/docker-latest-tag/) and [The misunderstood Docker tag: latest](https://medium.com/@mccode/the-misunderstood-docker-tag-latest-af3babfd6375).
Every new tag on the flutter stable channel gets built. The tag is composed of the Flutter version used to build the image:
The tag is composed of the Flutter version used to build the image. For example:
* Docker image: gmeligio/flutter-android:3.38.2
* Flutter version: 3.38.2
* Docker image: gmeligio/flutter-android:3.29.0
* Flutter version: 3.29.0
## Building Locally
## Developing Locally
The android.Dockerfile expects a few arguments:
### Running The Container
The Dockerfile expects a few parameters:
* `flutter_version <string>`: The version of Flutter to use when building. Example: 3.29.0
* `android_build_tools_version <string>`: The version of the Android SDK Build Tools to install. Example: 34.0.0
* `android_platform_versions <list>`: The versions of the Android SDK Platforms to install, separated by spaces. Example: 28 31 33
* `flutter_version <string>`: The version of Flutter to use when building. Example: 3.38.2
* `android_build_tools_version <string>`: The version of the Android SDK Build Tools to install. Example: 35.0.0
* `android_platform_versions <list>`: The versions of the Android SDK Platforms to install, separated by spaces. Example: 36
```bash
# Android
docker build --target android --build-arg flutter_version=3.29.0 --build-arg fastlane_version=2.226.0 --build-arg android_build_tools_version=34.0.0 --build-arg android_platform_versions="35" -t android-test .
docker build --target android --build-arg flutter_version=3.38.2 --build-arg fastlane_version=2.228.0 --build-arg android_build_tools_version=35.0.0 --build-arg android_platform_versions="36" -t android-test .
```
### Dockerfile stages
The base image is `debian/debian:12-slim` and from there multiple stages are created:
1. `flutter` stage hast only the dependencies required to install flutter and common tools used by flutter internal commands, like `git`.
2. `fastlane` stage has the dependencies required to install fastlane but doesn't install fastlane.
3. `android` stage has the dependencies required to install the Android SDK and to develop Flutter apps for Android.
## Roadmap
* Minimal image with predownloaded SDKs and tools ready to run `flutter` commands for the platforms:
* \[ \] iOS
* \[ \] Linux
* \[ \] Windows
* \[ \] Web
* iOS
* Linux
* Windows
* Web
* Android features:
* \[ \] Android emulator
* Android emulator
## FAQ
@@ -132,24 +123,20 @@ The base image is `debian/debian:12-slim` and from there multiple stages are cre
The storage of the images starts to cost after 50 GB and increases with every pushed image because the AWS Free Tier covers up to 50 GB of total storage for free in ECR Public.
### Why there is no dynamic tag like `latest`?
There is no `latest` Docker tag on purpose. You need to specify the version of the image you want to use. The reason for that is that `latest` can cause unexpected behavior when rerunning a past CI job that was expected to use the old build of the `latest` tag. There are multiple articles explaining more about this reasoning like [What's Wrong With The Docker :latest Tag?](https://vsupalov.com/docker-latest-tag/) and [The misunderstood Docker tag: latest](https://medium.com/@mccode/the-misunderstood-docker-tag-latest-af3babfd6375).
## Contributing
See [Contributing](docs/contributing.md).
## Other Docker projects for mobile development
* [docker-android-fastlane](https://github.com/softartdev/docker-android-fastlane)
## Acknowledgments
* [docker-android-build-box](https://github.com/mingchen/docker-android-build-box)
* [flutter-fastlane-android](https://github.com/gmemstr/flutter-fastlane-android)
* [circleci-images](https://github.com/circleci/circleci-images)
* [docker-images-android](https://github.com/cirruslabs/docker-images-android)
* [docker-images-flutter](https://github.com/cirruslabs/docker-images-flutter)
* [flutter-docker-image](https://github.com/instrumentisto/flutter-docker-image)
* [DockerFlutter](https://github.com/fischerscode/DockerFlutter)
## License
[MIT License](LICENSE.md)
Flutter is licensed under [BSD 3-Clause "New" or "Revised" license](https://github.com/flutter/flutter/blob/master/LICENSE).
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
The [sources](https://github.com/gmeligio/flutter-docker-image) for producing gmeligio/flutter-android Docker images are licensed under [MIT License](LICENSE.md).
+5
View File
@@ -0,0 +1,5 @@
# cmake generate
cmake -S . -B ../build/windows/x64 -G "Visual Studio 16 2019" -A x64 -DFLUTTER_TARGET_PLATFORM=windows-x64
# cmake build
cmake --build ../build/windows/x64 --config Release --target INSTALL --verbose
+40 -21
View File
@@ -1,27 +1,46 @@
const fs = require('fs')
const path = require('path')
module.exports = async ({ core }) => {
const fs = require('fs')
try {
const flutterVersionPath = 'config/flutter_version.json'
const flutterVersionPath = 'config/flutter_version.json'
const flutterVersionData = fs.readFileSync(flutterVersionPath, 'utf8')
const fluterVersionJson = JSON.parse(flutterVersionData)
if (
!fs.existsSync(flutterVersionPath) ||
fs.lstatSync(flutterVersionPath).isDirectory()
) {
throw new Error(`${flutterVersionPath} is missing or is a directory.`)
}
const versionPath = 'config/version.json'
const versionData = fs.readFileSync(versionPath, 'utf8')
let versionJson = JSON.parse(versionData)
const flutterVersionData = fs.readFileSync(flutterVersionPath, 'utf8')
const flutterVersionJson = JSON.parse(flutterVersionData)
const resultPath = 'config/version.json'
const result = {
...versionJson,
...fluterVersionJson,
const versionPath = 'config/version.json'
if (
!fs.existsSync(versionPath) ||
fs.lstatSync(versionPath).isDirectory()
) {
throw new Error(`${versionPath} is missing or is a directory.`)
}
const versionData = fs.readFileSync(versionPath, 'utf8')
let versionJson = JSON.parse(versionData)
const resultPath = 'config/version.json'
const result = {
...versionJson,
...flutterVersionJson,
}
const resultJson = JSON.stringify(result, null, 4)
fs.writeFileSync(resultPath, `${resultJson}\n`)
const version = flutterVersionJson.flutter.version
const channel = flutterVersionJson.flutter.channel
core.exportVariable('FLUTTER_VERSION', version)
core.exportVariable('FLUTTER_CHANNEL', channel)
} catch (error) {
core.setFailed(`Error in copyFlutterVersion script: ${error.message}`)
}
resultJson = JSON.stringify(result, null, 4)
fs.writeFileSync(resultPath, `${resultJson}\n`)
const version = fluterVersionJson.flutter.version
const channel = fluterVersionJson.flutter.channel
// Export FLUTTER_VERSION and FLUTTER_CHANNEL for the next workflow steps
core.exportVariable('FLUTTER_VERSION', version)
core.exportVariable('FLUTTER_CHANNEL', channel)
}
+23
View File
@@ -0,0 +1,23 @@
module.exports = async ({ core, context, github }) => {
const { OLD_FLUTTER_VERSION, NEW_FLUTTER_VERSION } = process.env
if (!OLD_FLUTTER_VERSION) {
core.setFailed('Environment variable OLD_FLUTTER_VERSION is required.')
}
if (!NEW_FLUTTER_VERSION) {
core.setFailed('Environment variable NEW_FLUTTER_VERSION is required.')
}
if (OLD_FLUTTER_VERSION === NEW_FLUTTER_VERSION) {
return
}
// Create a git tag using the GitHub API instead of the git client to skip SSH/GPG key setup.
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: `refs/tags/${NEW_FLUTTER_VERSION}`,
sha: context.sha,
})
}
+26
View File
@@ -0,0 +1,26 @@
$analytic_tools_str = "Dart, Flutter and Fastlane"
if ($env:ENABLE_ANALYTICS -eq "true") {
Write-Output "Received 'ENABLE_ANALYTICS=true'.`nEnabling analytics for $analytic_tools_str."
dart --enable-analytics
flutter config --analytics
if (Test-Path env:FASTLANE_OPT_OUT_USAGE) {
Remove-Item env:FASTLANE_OPT_OUT_USAGE
}
}
else {
dart --disable-analytics
flutter --disable-analytics
$env:POWERSHELL_TELEMETRY_OPTOUT = 1
$env:FASTLANE_OPT_OUT_USAGE = "YES"
# TODO: $env:COCOAPODS_DISABLE_STATS = 1
}
if ($args.length -gt 0) {
Invoke-Expression "$args"
}
else {
powershell
}
+1
View File
@@ -0,0 +1 @@
java -version 2>&1 | awk -F[\".] '/version/ {print $2}'
+1
View File
@@ -0,0 +1 @@
jq -r '.releases[] | select(.channel=="stable") | max_by(.release_date) | .version'
+3
View File
@@ -1 +1,4 @@
sdkmanager --list | grep 'build-tools' | awk '{print $1}' | grep -oP 'build-tools;\d+\.\d+\.\d+$' | tail -1
# Get 36.0.0 from `build-tools;36.0.0:build-tools`
curl -s https://raw.githubusercontent.com/flutter/flutter/refs/tags/3.35.1/engine/src/flutter/tools/android_sdk/packages.txt | grep 'build-tools' | awk -F'[;:]' '{print $2}'
+1 -1
View File
@@ -1 +1 @@
renovate-config-validator --strict
npx --yes --package renovate -- renovate-config-validator --strict
+43
View File
@@ -0,0 +1,43 @@
module.exports = async ({ core }) => {
const { VERSION_MANIFEST, GITHUB_REPOSITORY_OWNER, IMAGE_REPOSITORY_NAME } =
process.env
if (!VERSION_MANIFEST) {
core.setFailed('Environment variable VERSION_MANIFEST is required.')
return false
}
if (!GITHUB_REPOSITORY_OWNER) {
core.setFailed('Environment variable GITHUB_REPOSITORY_OWNER is required.')
return false
}
if (!IMAGE_REPOSITORY_NAME) {
core.setFailed('Environment variable IMAGE_REPOSITORY_NAME is required.')
return false
}
const fs = require('fs')
const text = fs.readFileSync(VERSION_MANIFEST, 'utf8')
const data = JSON.parse(text)
const platforms = data.android.platforms
.map((platform) => platform.version)
.join(' ')
core.exportVariable('FLUTTER_VERSION', data.flutter.version)
core.exportVariable('FASTLANE_VERSION', data.fastlane.version)
core.exportVariable(
'ANDROID_BUILD_TOOLS_VERSION',
data.android.buildTools.version
)
core.exportVariable('ANDROID_PLATFORM_VERSIONS', platforms)
core.exportVariable('ANDROID_NDK_VERSION', data.android.ndk.version)
core.exportVariable('CMAKE_VERSION', data.android.cmake.version)
core.exportVariable(
'IMAGE_REPOSITORY_PATH',
`${GITHUB_REPOSITORY_OWNER}/${IMAGE_REPOSITORY_NAME}`
)
return true
}
-19
View File
@@ -1,19 +0,0 @@
#!/usr/bin/env bash
IMAGE_REPOSITORY_PATH="$GITHUB_REPOSITORY_OWNER/$IMAGE_REPOSITORY_NAME"
{
echo "FLUTTER_VERSION=$(jq -r '.flutter.version' "$VERSION_MANIFEST")"
echo "FASTLANE_VERSION=$(jq -r '.fastlane.version' "$VERSION_MANIFEST")"
echo "ANDROID_BUILD_TOOLS_VERSION=$(jq -r '.android.buildTools.version' "$VERSION_MANIFEST")"
echo "ANDROID_PLATFORM_VERSIONS=$(jq -r '.android.platforms[].version' "$VERSION_MANIFEST" | tr '\n' ' ' | sed 's/ $//')"
echo "ANDROID_NDK_VERSION=$(jq -r '.android.ndk.version' "$VERSION_MANIFEST")"
echo "CMAKE_VERSION=$(jq -r '.android.cmake.version' "$VERSION_MANIFEST")"
echo "IMAGE_REPOSITORY_PATH=$IMAGE_REPOSITORY_PATH"
} >>"$GITHUB_ENV"
+12 -5
View File
@@ -10,22 +10,21 @@ module.exports = async ({ core, fetch }) => {
* @param {*} fileUrl
* @returns object|boolean
*/
async function downloadReleases(fileUrl) {
async function downloadReleases(core, fileUrl) {
try {
const response = await fetch(fileUrl)
return response.json()
} catch (error) {
console.error(
`An error occurred while requesting the file URL: ${fileUrl}`,
error
core.error(
`An error occurred while requesting the file URL ${fileUrl}: ${error}`
)
return false
}
}
const linuxReleasesResponse = await downloadReleases(linuxReleasesUrl)
const linuxReleasesResponse = await downloadReleases(core, linuxReleasesUrl)
if (linuxReleasesResponse === false) {
core.setFailed(
@@ -46,6 +45,12 @@ module.exports = async ({ core, fetch }) => {
const { version, channel, hash: commit } = latestRelease
if (oldJson.flutter.version === version) {
core.info(`Flutter version ${version} is already set.`)
return false
}
// Update result file, i.e. version.json
const newJson = {
...oldJson,
@@ -60,4 +65,6 @@ module.exports = async ({ core, fetch }) => {
resultJson = JSON.stringify(newJson, null, 4)
fs.writeFileSync(resultPath, `${resultJson}\n`)
core.exportVariable('FLUTTER_VERSION', version)
return true
}
+3
View File
@@ -0,0 +1,3 @@
# TODO: Add image registry URLs to the release changelog
npx git-cliff -t 3.29.3 -o changelog.md
+11 -6
View File
@@ -1,14 +1,18 @@
#!/usr/bin/env sh
# TODO: Update all versions used in android.yml from version.json, like NDK, CMake, etc.
# Path to the JSON and YAML files
version_file_path="./config/version.json"
test_file_path="./test/android.yml"
temp_file_path="./test/temp.yml"
# Extracting the version value from the version.json file
android_cmdline_tools_version=$(yq -oy '.android.cmdlineTools.version' "$version_file_path")
android_cmdline_tools_version=$(cue eval -e 'android.cmdlineTools.version' "$version_file_path" | tr -d '"')
android_cmdline_tools_test_expected_content="Pkg.Revision=$android_cmdline_tools_version
Pkg.Path=cmdline-tools;$android_cmdline_tools_version
Pkg.Desc=Android SDK Command-line Tools"
android_ndk_version=$(cue eval -e 'android.ndk.version' "$version_file_path" | tr -d '"')
android_sdk_build_tools_version=$(cue eval -e 'android.buildTools.version' "$version_file_path" | tr -d '"')
# Check if the version value is not empty
if [ -z "$android_cmdline_tools_version" ]; then
@@ -16,9 +20,10 @@ if [ -z "$android_cmdline_tools_version" ]; then
exit 1
fi
# Update the YAML file using yq
# Replace 'path.to.version' with the actual path to the version field in the YAML file
yq -i ".fileContentTests[0].name = \"Android SDK Command-line Tools is version $android_cmdline_tools_version\" | .fileContentTests[0].expectedContents[0] = \"$android_cmdline_tools_test_expected_content\"" "$test_file_path"
# Verify the update
echo "Updated $test_file_path with android_cmdline_tools_version: $android_cmdline_tools_version"
# Update the version YAML file using cue
cue export config/android.cue -l input: ./test/android.yml -t android_cmdline_tools_version="$android_cmdline_tools_version" -t android_cmdline_tools_test_expected_content="$android_cmdline_tools_test_expected_content" -t android_ndk_version="$android_ndk_version" -t android_sdk_build_tools_version="$android_sdk_build_tools_version" -e output --out yaml >"$temp_file_path"
mv "$temp_file_path" "$test_file_path"
# Write progress
echo "Updated $test_file_path with android_cmdline_tools_version=$android_cmdline_tools_version, android_ndk_version=$android_ndk_version"
+17 -5
View File
@@ -24,13 +24,19 @@ commandTests:
args:
- /home/flutter/sdks/android-sdk/build-tools
expectedOutput:
- 34.0.0
- 35.0.0
- name: Android NDK is pinned
command: ls
args:
- /home/flutter/sdks/android-sdk/ndk
expectedOutput:
- 26.3.11579264
- 28.2.13676358
- name: CMake is pinned
command: ls
args:
- /home/flutter/sdks/android-sdk/cmake
expectedOutput:
- 3.22.1
- name: Android SDK build tools directory only has one directory
command: bash
args:
@@ -50,7 +56,10 @@ commandTests:
- /home/flutter/test_app/android/fastlane/Appfile
- - sh
- -c
- "echo 'lane :hello do\n puts \"Hello\"\nend' > /home/flutter/test_app/android/fastlane/Fastfile"
- |-
echo 'lane :hello do
puts "Hello"
end' > /home/flutter/test_app/android/fastlane/Fastfile
- - touch
- /home/flutter/test_app/android/fastlane/Pluginfile
teardown:
@@ -75,10 +84,13 @@ commandTests:
excludedOutput:
- Sending anonymous analytics information
fileContentTests:
- name: Android SDK Command-line Tools is version 12.0
- name: Android SDK Command-line Tools is version 19.0
path: /home/flutter/sdks/android-sdk/cmdline-tools/latest/source.properties
expectedContents:
- "Pkg.Revision=12.0\nPkg.Path=cmdline-tools;12.0\nPkg.Desc=Android SDK Command-line Tools"
- |-
Pkg.Revision=19.0
Pkg.Path=cmdline-tools;19.0
Pkg.Desc=Android SDK Command-line Tools
- name: Dart and Flutter analytics are disabled
path: /home/flutter/.dart-tool/dart-flutter-telemetry.config
expectedContents:
View File
+88
View File
@@ -0,0 +1,88 @@
# escape=`
FROM mcr.microsoft.com/windows/servercore:ltsc2025@sha256:1126ba40ef176fb8393f59822c2431c5daf38f5c67a62808960c7036311350af as flutter
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
ARG git_version=2.46.0
ARG git_installation_path="C:\Program Files\Git"
# TODO: Find a way to pass $env:USERPROFILE instead of hardcoding C:\Users\ContainerUser. It's hardcoded because environment variables in Windows container works by setting for the Machine scope and that will have $env:USERPROFILE as C:\Users\ContainerAdministrator instead.
ENV USERPROFILE="C:\Users\ContainerUser"
ENV SDK_ROOT="${USERPROFILE}\sdks"
ENV FLUTTER_ROOT="${SDK_ROOT}\flutter"
# Set FLUTTER_GIT_URL to fix warning: "Upstream repository unknown source is not a standard remote. Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error."
ENV FLUTTER_GIT_URL="unknown source"
WORKDIR "$USERPROFILE"
# Install Git because is required by Flutter
RUN $installer = \"MinGit-${env:git_version}-busybox-64-bit.zip\"; `
$url = \"https://github.com/git-for-windows/git/releases/download/v${env:git_version}.windows.1/${installer}\"; `
Invoke-WebRequest -Uri "$url" -OutFile "$installer"; `
Expand-Archive -Path "$installer" -DestinationPath "$env:git_installation_path"; `
Remove-Item -Path "$installer";
# The user ContainerAdministrator must be used because is the one that has permissions to set the system PATH
USER ContainerAdministrator
# The PATH variable will be updated in the next shell session, so the RUN command that sets the PATH needs to be separated from the one that uses it
RUN [Environment]::SetEnvironmentVariable('PATH', \"${env:PATH};${env:git_installation_path}\cmd;${env:git_installation_path}\usr\bin;${env:FLUTTER_ROOT}\bin;${env:FLUTTER_ROOT}\bin\cache\dart-sdk\bin;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\msbuild\current\bin\", 'Machine');
# MinGit has a circular reference in its global configuration, which causes git to crash
# See https://github.com/git-for-windows/git/issues/2387#issuecomment-679367609
# hadolint ignore=DL3059
RUN $env:GIT_CONFIG_NOSYSTEM=1; git config --system --unset-all include.path;
# Switch to the non-admin user when the admin user is not needed anymore
USER ContainerUser
ARG flutter_version
RUN git clone `
--depth 1 `
--branch "$env:flutter_version" `
https://github.com/flutter/flutter `
"$env:FLUTTER_ROOT"; `
# To fix fatal: detected dubious ownership in repository at 'C:/Users/ContainerUser/sdks/flutter/.git' owned by BUILTIN/Administrators but the current user is: User Manager/ContainerUser
git config --global --add safe.directory "$env:FLUTTER_ROOT"; `
flutter --version; `
dart --disable-analytics; `
flutter config `
--no-cli-animations `
--no-analytics `
--no-enable-android `
--no-enable-web `
--no-enable-linux-desktop `
--enable-windows-desktop `
--no-enable-fuchsia `
--no-enable-custom-devices `
--no-enable-ios `
--no-enable-macos-desktop; `
flutter doctor --verbose; `
flutter precache --windows; `
flutter create build_app;
# The user ContainerAdministrator must be used because is the one that has permissions to install with vs_BuildTools
USER ContainerAdministrator
# Download the Build Tools bootstrapper
# See https://learn.microsoft.com/en-us/visualstudio/install/build-tools-container?view=vs-2022
RUN Invoke-WebRequest -Uri https://aka.ms/vs/17/release/vs_buildtools.exe -OutFile vs_BuildTools.exe; `
Start-Process vs_BuildTools.exe -ArgumentList '--quiet --wait --norestart --nocache `
--add Microsoft.VisualStudio.Component.VC.CMake.Project `
--add Microsoft.VisualStudio.Component.Windows11SDK.22621 `
--add Microsoft.VisualStudio.Workload.VCTools' `
-Wait; `
Remove-Item vs_BuildTools.exe;
USER ContainerUser
WORKDIR "$USERPROFILE/build_app"
RUN flutter build windows;
WORKDIR "$USERPROFILE"
COPY ./script/docker_windows_entrypoint.ps1 "docker_entrypoint.ps1"
ENTRYPOINT "C:\Users\ContainerUser\docker_entrypoint.ps1"
RUN Remove-Item -Recurse build_app;
+124
View File
@@ -0,0 +1,124 @@
# Windows
## Swich between Linux and Windows containers
& $Env:ProgramFiles\Docker\Docker\DockerCli.exe -SwitchDaemon
## TODO
1. Install tools
```powershell`
# # needed? No
# --add Microsoft.Component.MSBuild' `
# # needed? No
# --add Microsoft.VisualStudio.Component.TestTools.BuildTools `
# # needed? No
# --add Microsoft.VisualStudio.Component.VC.ASAN `
# # needed? no
# # --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 `
RUN Invoke-WebRequest -Uri https://aka.ms/vs/17/release/vs_buildtools.exe -OutFile vs_BuildTools.exe; `
Start-Process vs_BuildTools.exe -ArgumentList '--quiet --wait --norestart --nocache `
# # needed? yes
# --add Microsoft.VisualStudio.Component.VC.CMake.Project `
# # needed? Yes
# --add Microsoft.VisualStudio.Component.Windows11SDK.22621 `
# # needed?
# --add Microsoft.VisualStudio.Workload.VCTools' `
-Wait; `
Remove-Item vs_BuildTools.exe;
```
1. Check how it can be run in Github actions.
1. Check how it can be run in Gitlab CI/CD.
1. Test where is installed.
1. Test that path to powershell.exe exists.
1. Test with a snapshot of flutter config to determine if new feature flags should be enabled or disabled.
1. Test that Build Tools were installed in C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\msbuild\current\bin
1. Check [Windows installation requirements for Flutter](https://docs.flutter.dev/get-started/install/windows/desktop)
1. Add docs explaining to use `$VerbosePreference = 'Continue';` in the SHELL to debug unexpected pwsh problems.
## Open issue in windows Docker images repo
1. Some images can be pulled while others give error:
```text
Error response from daemon: Get "https://mcr.microsoft.com/v2/": read tcp [2a0c:5a84:e100:e501::a97c]:58039->[2603:1061:f:101::10]:443: wsarecv: An existing connection was forcibly closed by the remote host.
```
Debug with `curl -A github165 -v https://mcr.microsoft.com/v2/powershell/manifests/lts-nanoserver-ltsc2022`
## Contribute flutter upstream
1. Remove `WHERE` in bin\internal\shared.bat and use instead:
```batch
pwsh.exe -Command "exit" >nul 2>&1 && (
SET powershell_executable=pwsh.exe
) || powershell.exe -Command "exit" >nul 2>&1 && (
SET powershell_executable=PowerShell.exe
) || (
ECHO Error: PowerShell executable not found. 1>&2
ECHO Either pwsh.exe or PowerShell.exe must be in your PATH. 1>&2
EXIT 1
)
```
1. Find if the executable should be pwsh or powershell and put it in a service to remove the hardcoded "powershell" in multiple places, like in:
- dev\devicelab\lib\framework\running_processes.dart
- packages\flutter_tools\lib\src\windows\windows_version_validator.dart
## Steps to reproduce in Docker
1. Enable Windows Developer Settings to solve error:
>Building with plugins requires symlink support.
>
>Please enable Developer Mode in your system settings. Run
> start ms-settings:developers
>to open settings.
```powershell
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
```
1. For CI/CD
1. Docker version must be pinned in Github workflow to avoid breaking changes: with escaping `\"` syntax inside RUN directive, etc.
1. Packaging tool in Windows: <https://pub.dev/packages/msix> . It uses the executables:
- [makeappx.exe](https://learn.microsoft.com/en-us/windows/win32/appxpkg/make-appx-package--makeappx-exe-)
- [makepri.exe](https://learn.microsoft.com/en-us/windows/uwp/app-resources/makepri-exe-command-options)
- [signtool.exe](https://learn.microsoft.com/en-us/dotnet/framework/tools/signtool-exe)
- certificate
- Make a note that --install-certificate should be "false" or configured because the certificate can't be installed as ContainerUser.
```powershell
# OK
Import-PfxCertificate -FilePath "C:\Users\ContainerUser\AppData\Local\Pub\Cache\hosted\pub.dev\msix-3.16.8\lib\assets\test_certificate.pfx" -Password (ConvertTo-SecureString -AsPlainText -Force "1234") -CertStoreLocation Cert:\LocalMachine\Root
# Doesn't work
Import-PfxCertificate -FilePath "C:\Users\ContainerUser\AppData\Local\Pub\Cache\hosted\pub.dev\msix-3.16.8\lib\assets\test_certificate.pfx" -Password (ConvertTo-SecureString -AsPlainText -Force "1234")
```
1. Install msstore CLI https://github.com/microsoft/msstore-cli It seems behind StoreBroker but it looks that it's going to be the primary and recommended way to publish to Microsoft Store
- According to the [msstore guide](https://learn.microsoft.com/en-us/windows/apps/publish/msstore-dev-cli/commands?pivots=msstoredevcli-installer-linux#installation), It will be needed to install Microsoft.NetCore.Component.Runtime.8.0 with vs_BuildTools
1. From <https://github.com/tauu/flutter-windows-builder/blob/main/Dockerfile> => install <https://github.com/microsoft/StoreBroker> This is currently the primary tool to publish to Microsoft Store
- Not installed right now
1. Install the [Windows App Certification Kit](https://learn.microsoft.com/en-us/windows/uwp/debug-test-perf/windows-app-certification-kit) or the [Windows SDK that already includes it](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/)
- Installed currently by one of the workloads in vs_BuildTools
## References
- [How environment variables work on Windows containers?](https://blog.sixeyed.com/windows-weekly-dockerfile-14-environment-variables/)
- [Windows deployment in Flutter](https://docs.flutter.dev/deployment/windows)
- [vs_BuildTools workloads](https://learn.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-build-tools?view=vs-2022&preserve-view=true)
- Useful Dockerfile https://git.openprivacy.ca/openprivacy/flutter-desktop/src/branch/main/windows/Dockerfile