mirror of
https://github.com/gmeligio/flutter-docker-image.git
synced 2026-05-24 12:30:34 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 48960b660c | |||
| eb64413395 | |||
| dd948b063a | |||
| 17ea4a6d5c | |||
| 9f18883ac6 |
@@ -10,6 +10,10 @@
|
||||
"packageRules": [
|
||||
{
|
||||
"groupName": "github-actions",
|
||||
"matchUpdateTypes": [
|
||||
"major",
|
||||
"minor"
|
||||
],
|
||||
"matchDatasources": [
|
||||
"github-tags"
|
||||
]
|
||||
|
||||
@@ -6,6 +6,10 @@ on:
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
test_image:
|
||||
permissions:
|
||||
|
||||
@@ -21,13 +21,6 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Generate authentication token with GitHub App
|
||||
uses: actions/create-github-app-token@21cfef2b496dd8ef5b904c159339626a10ad380e # v1.11.6
|
||||
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.3.0
|
||||
with:
|
||||
@@ -105,6 +98,13 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Generate authentication token with GitHub App to trigger Actions
|
||||
uses: actions/create-github-app-token@21cfef2b496dd8ef5b904c159339626a10ad380e # v1.11.6
|
||||
id: generate-token
|
||||
with:
|
||||
app-id: ${{ secrets.VERIFIED_COMMIT_ID }}
|
||||
private-key: ${{ secrets.VERIFIED_COMMIT_KEY }}
|
||||
|
||||
- name: Setup CUE
|
||||
uses: cue-lang/setup-cue@a93fa358375740cd8b0078f76355512b9208acb1 # v1.0.1
|
||||
|
||||
@@ -121,6 +121,7 @@ jobs:
|
||||
OLD_FLUTTER_VERSION: ${{ vars.FLUTTER_VERSION }}
|
||||
NEW_FLUTTER_VERSION: ${{ env.FLUTTER_VERSION }}
|
||||
with:
|
||||
github-token: ${{ steps.generate-token.outputs.token }}
|
||||
script: |
|
||||
const script = require('./script/createGitTag.js')
|
||||
await script({ core, context, github })
|
||||
|
||||
@@ -30,7 +30,7 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Generate authentication token with GitHub App
|
||||
- name: Generate authentication token with GitHub App to trigger Actions
|
||||
uses: actions/create-github-app-token@21cfef2b496dd8ef5b904c159339626a10ad380e # v1.11.6
|
||||
id: generate-token
|
||||
with:
|
||||
@@ -96,6 +96,7 @@ jobs:
|
||||
run: |
|
||||
echo "COMMIT_MESSAGE=chore: update flutter dependencies in version.json for ${{ env.FLUTTER_VERSION }}" >> $GITHUB_ENV
|
||||
|
||||
# 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@dd2324fc52d5d43c699a5636bcf19fceaa70c284 # v7.0.7
|
||||
with:
|
||||
|
||||
@@ -19,7 +19,7 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Generate authentication token with GitHub App
|
||||
- name: Generate authentication token with GitHub App to trigger Actions
|
||||
uses: actions/create-github-app-token@21cfef2b496dd8ef5b904c159339626a10ad380e # v1.11.6
|
||||
id: generate-token
|
||||
with:
|
||||
|
||||
+14
-6
@@ -5,11 +5,22 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [3.29.2] - 2025-03-15
|
||||
|
||||
### Changed
|
||||
- Update flutter dependencies in version.json for 3.29.2
|
||||
- Update flutter version in flutter_version.json to 3.29.2 by @verified-commit[bot] in [#309](https://github.com/gmeligio/flutter-docker-image/pull/309)
|
||||
- Upgrade actions only for new major or minor versions by @gmeligio in [#308](https://github.com/gmeligio/flutter-docker-image/pull/308)
|
||||
- Run pr build only from latest commit by @gmeligio in [#306](https://github.com/gmeligio/flutter-docker-image/pull/306)
|
||||
- Generate tag with Github App token to trigger Actions by @gmeligio in [#305](https://github.com/gmeligio/flutter-docker-image/pull/305)
|
||||
|
||||
## New Contributors
|
||||
* @verified-commit[bot] made their first contribution in [#309](https://github.com/gmeligio/flutter-docker-image/pull/309)
|
||||
* @gmeligio made their first contribution in [#308](https://github.com/gmeligio/flutter-docker-image/pull/308)
|
||||
## [3.29.1] - 2025-03-09
|
||||
|
||||
### Changed
|
||||
- Restore --depth 1
|
||||
- Update flutter dependencies in version.json for 3.29.1
|
||||
- Update flutter dependencies in version.json for 3.29.1 by @verified-commit[bot] in [#304](https://github.com/gmeligio/flutter-docker-image/pull/304)
|
||||
- Discard changes to flutter source code when switching tags by @gmeligio in [#303](https://github.com/gmeligio/flutter-docker-image/pull/303)
|
||||
- Update flutter version in flutter_version.json to 3.29.1 by @verified-commit[bot] in [#302](https://github.com/gmeligio/flutter-docker-image/pull/302)
|
||||
- Mention Flutter license by @gmeligio in [#301](https://github.com/gmeligio/flutter-docker-image/pull/301)
|
||||
@@ -27,10 +38,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Fixed
|
||||
- Use github context because octokit is not available by @gmeligio in [#293](https://github.com/gmeligio/flutter-docker-image/pull/293)
|
||||
|
||||
## New Contributors
|
||||
* @gmeligio made their first contribution in [#303](https://github.com/gmeligio/flutter-docker-image/pull/303)
|
||||
* @verified-commit[bot] made their first contribution in [#302](https://github.com/gmeligio/flutter-docker-image/pull/302)
|
||||
* @renovate[bot] made their first contribution in [#299](https://github.com/gmeligio/flutter-docker-image/pull/299)
|
||||
## [3.29.0] - 2025-02-17
|
||||
|
||||
### Added
|
||||
@@ -523,6 +530,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
* @gmeligio made their first contribution in [#288](https://github.com/gmeligio/flutter-docker-image/pull/288)
|
||||
* @dependabot[bot] made their first contribution in [#285](https://github.com/gmeligio/flutter-docker-image/pull/285)
|
||||
* @github-actions[bot] made their first contribution in [#108](https://github.com/gmeligio/flutter-docker-image/pull/108)
|
||||
[3.29.2]: https://github.com/gmeligio/flutter-docker-image/compare/3.29.1..3.29.2
|
||||
[3.29.1]: https://github.com/gmeligio/flutter-docker-image/compare/3.29.0..3.29.1
|
||||
|
||||
<!-- generated by git-cliff -->
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"flutter": {
|
||||
"channel": "stable",
|
||||
"commit": "09de023485e95e6d1225c2baa44b8feb85e0d45f",
|
||||
"version": "3.29.1"
|
||||
"commit": "c23637390482d4cf9598c3ce3f2be31aa7332daf",
|
||||
"version": "3.29.2"
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"flutter": {
|
||||
"channel": "stable",
|
||||
"commit": "09de023485e95e6d1225c2baa44b8feb85e0d45f",
|
||||
"version": "3.29.1"
|
||||
"commit": "c23637390482d4cf9598c3ce3f2be31aa7332daf",
|
||||
"version": "3.29.2"
|
||||
},
|
||||
"android": {
|
||||
"platforms": [
|
||||
@@ -27,6 +27,6 @@
|
||||
}
|
||||
},
|
||||
"fastlane": {
|
||||
"version": "2.226.0"
|
||||
"version": "2.227.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,10 +10,10 @@ The images includes the minimum tools to run Flutter and build apps. The version
|
||||
|
||||
## Features
|
||||
|
||||
* Installed Flutter SDK 3.29.1.
|
||||
* Installed Flutter SDK 3.29.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.227.0.
|
||||
* Minimal image with predownloaded SDKs and tools ready to run `flutter` commands for the Android platform.
|
||||
|
||||
Predownloaded SDKs and tools in Android:
|
||||
@@ -39,13 +39,13 @@ On the terminal:
|
||||
|
||||
```bash
|
||||
# From Docker Hub
|
||||
docker run --rm -it gmeligio/flutter-android:3.29.1 bash
|
||||
docker run --rm -it gmeligio/flutter-android:3.29.2 bash
|
||||
|
||||
# From GitHub Container Registry
|
||||
docker run --rm -it ghcr.io/gmeligio/flutter-android:3.29.1 bash
|
||||
docker run --rm -it ghcr.io/gmeligio/flutter-android:3.29.2 bash
|
||||
|
||||
# From Quay.io
|
||||
docker run --rm -it quay.io/gmeligio/flutter-android:3.29.1 bash
|
||||
docker run --rm -it quay.io/gmeligio/flutter-android:3.29.2 bash
|
||||
```
|
||||
|
||||
On a workflow in GitHub Actions:
|
||||
@@ -55,7 +55,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
container:
|
||||
image: ghcr.io/gmeligio/flutter-android:3.29.1
|
||||
image: ghcr.io/gmeligio/flutter-android:3.29.2
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
@@ -67,7 +67,7 @@ On a `.gitlab-ci.yml` in GitLab CI:
|
||||
|
||||
```yaml
|
||||
build:
|
||||
image: ghcr.io/gmeligio/flutter-android:3.29.1
|
||||
image: ghcr.io/gmeligio/flutter-android:3.29.2
|
||||
script:
|
||||
- flutter build apk
|
||||
```
|
||||
@@ -90,8 +90,8 @@ There is no `latest` Docker tag on purpose. You need to specify the version of t
|
||||
|
||||
The tag is composed of the Flutter version used to build the image. For example:
|
||||
|
||||
* Docker image: gmeligio/flutter-android:3.29.1
|
||||
* Flutter version: 3.29.1
|
||||
* Docker image: gmeligio/flutter-android:3.29.2
|
||||
* Flutter version: 3.29.2
|
||||
|
||||
## Developing Locally
|
||||
|
||||
@@ -99,13 +99,13 @@ The tag is composed of the Flutter version used to build the image. For example:
|
||||
|
||||
The Dockerfile expects a few parameters:
|
||||
|
||||
* `flutter_version <string>`: The version of Flutter to use when building. Example: 3.29.1
|
||||
* `flutter_version <string>`: The version of Flutter to use when building. Example: 3.29.2
|
||||
* `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
|
||||
|
||||
```bash
|
||||
# Android
|
||||
docker build --target android --build-arg flutter_version=3.29.1 --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.29.2 --build-arg fastlane_version=2.227.0 --build-arg android_build_tools_version=34.0.0 --build-arg android_platform_versions="35" -t android-test .
|
||||
```
|
||||
|
||||
### Dockerfile stages
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
npx git-cliff -t 3.29.1 -c github-keepachangelog -o changelog.md
|
||||
# TODO: Add image registry URLs to the release changelog
|
||||
|
||||
npx git-cliff -t 3.29.2 -c github-keepachangelog -o changelog.md
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/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"
|
||||
|
||||
@@ -31,6 +31,12 @@ commandTests:
|
||||
- /home/flutter/sdks/android-sdk/ndk
|
||||
expectedOutput:
|
||||
- 26.3.11579264
|
||||
- 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:
|
||||
|
||||
Reference in New Issue
Block a user