From 59ed71e5bd569bbba8925be3658901fdb3f8cb61 Mon Sep 17 00:00:00 2001 From: Tobias Busch Date: Thu, 9 Nov 2023 10:37:44 +0100 Subject: [PATCH] Chore: enable nightly --- .github/workflows/nightly_flutter_version.yml | 20 ++++--- README.md | 58 +------------------ 2 files changed, 13 insertions(+), 65 deletions(-) diff --git a/.github/workflows/nightly_flutter_version.yml b/.github/workflows/nightly_flutter_version.yml index 5b20957..67ade99 100644 --- a/.github/workflows/nightly_flutter_version.yml +++ b/.github/workflows/nightly_flutter_version.yml @@ -31,23 +31,24 @@ jobs: id: compare-versions uses: madhead/semver-utils@latest with: - # A version to work with version: ${{ steps.get-versions.outputs.LATEST_TAG }} - # A version to compare against compare-to: ${{ steps.get-versions.outputs.CURRENT_TAG }} - - name: Update Files + - name: Update Dockerfile if: ${{ steps.compare-versions.outputs.comparison-result == '>' }} run: | echo Newer stable flutter version found + echo "The version in this project is ${{ steps.get-versions.outputs.CURRENT_TAG }}" + echo "Latest version is ${{ steps.get-versions.outputs.LATEST_TAG }} | Revision: $revision | Date: $date" + sed -i "s/ENV FLUTTER_VERSION=.*/ENV FLUTTER_VERSION=\"${{ steps.get-versions.outputs.LATEST_TAG }}\"/" Dockerfile + + - name: Update README + if: ${{ steps.compare-versions.outputs.comparison-result == '>' }} + run: | framework_line=$(echo "$(flutter --version)" | grep "Framework") revision=$(echo "$framework_line" | sed -E 's/.*revision ([^ ]+).*/\1/') date=$(echo "$framework_line" | sed -E 's/.*([0-9]{4})-([0-9]{2})-([0-9]{2}).*/\1-\2-\3/') - echo "Current tag is ${{ steps.get-versions.outputs.CURRENT_TAG }}" - echo "Latest tag is ${{ steps.get-versions.outputs.LATEST_TAG }} | Revision: $revision | Date: $date" - sed -i "s/ENV FLUTTER_VERSION=.*/ENV FLUTTER_VERSION=\"${{ steps.get-versions.outputs.LATEST_TAG }}\"/" Dockerfile - sed -i "s/|.*|/| ${{ steps.get-versions.outputs.LATEST_TAG }} | $revision | $date |/" Readme.md - sed -i "/## Releases/a | ${{ steps.get-versions.outputs.LATEST_TAG }} | ${{ steps.get-versions.outputs.LATEST_TAG }} | stable |" README.md + sed -i "s@@@g" README.md sed -i "s/slashwhyorganization\/flutter-sdk-image:${{ steps.get-versions.outputs.CURRENT_TAG }}/slashwhyorganization\/flutter-sdk-image:${{ steps.get-versions.outputs.LATEST_TAG }}/g" README.md - name: Create Pull Request @@ -57,5 +58,6 @@ jobs: commit-message: Update to ${{ steps.get-versions.outputs.LATEST_TAG }} title: Update to ${{ steps.get-versions.outputs.LATEST_TAG }} body: | - - Auto-generated by create-pull-request + This PR was auto generated because a new Flutter version has been found + - [ ] make sure to run the PR pipeline, you can do this by closing and opening this pull request again branch: feature/${{ steps.get-versions.outputs.LATEST_TAG }} diff --git a/README.md b/README.md index 56ba0ff..899e1fa 100644 --- a/README.md +++ b/README.md @@ -2,62 +2,11 @@ Docker image to build a Flutter app `*.apk` for Android. The latest image contains always the latest stable version of the Flutter SDK: https://flutter.dev/docs/development/tools/sdk/releases?tab=linux -Currently: - -| Version | Ref | Release Date | -| ------- | ------- | ------------ | -| 3.13.9 | d211f42 | 2023/10/26 | + ## Releases -| Tag | Flutter Version | Flutter Channel | -| ----------------- | ----------------- | --------------- | -| 3.13.9 | 3.13.9 | stable | -| 3.13.8 | 3.13.8 | stable | -| 3.13.7 | 3.13.7 | stable | -| 3.13.6 | 3.13.6 | stable | -| 3.13.5 | 3.13.5 | stable | -| 3.13.4 | 3.13.4 | stable | -| 3.13.2 | 3.13.2 | stable | -| 3.13.1 | 3.13.1 | stable | -| 3.13.0 | 3.13.0 | stable | -| 3.10.3 | 3.10.3 | stable | -| 3.10.2 | 3.10.2 | stable | -| 3.10.1 | 3.10.1 | stable | -| 3.10.0 | 3.10.0 | stable | -| 3.7.12 | 3.7.12 | stable | -| 3.7.11 | 3.7.11 | stable | -| 3.7.10 | 3.7.10 | stable | -| 3.7.9 | 3.7.9 | stable | -| 3.7.8 | 3.7.8 | stable | -| 3.7.7 | 3.7.7 | stable | -| 2.0.1 | 2.0.1 | stable | -| 1.22.5 | 1.22.5 | stable | -| 1.22.4 | 1.22.4 | stable | -| 1.22.3 | 1.22.3 | stable | -| 1.22.2 | 1.22.2 | stable | -| 1.22.1 | 1.22.1 | stable | -| 1.22.0 | 1.22.0 | stable | -| 1.20.4 | 1.20.4 | stable | -| 1.20.3 | 1.20.3 | stable | -| 1.20.2 | 1.20.2 | stable | -| 1.20.1 | 1.20.1 | stable | -| 1.20.0 | 1.20.0 | stable | -| 1.17.5 | 1.17.5 | stable | -| 1.17.4 | 1.17.4 | stable | -| 1.17.3 | 1.17.3 | stable | -| 1.17.2 | 1.17.2 | stable | -| 1.17.1 | 1.17.1 | stable | -| 1.17.0 | 1.17.0 | stable | -| v1.12.13-hotfix.9 | v1.12.13+hotfix.9 | stable | -| v1.12.13-hotfix.8 | v1.12.13+hotfix.8 | stable | -| v1.12.13-hotfix.7 | v1.12.13+hotfix.7 | stable | -| v1.12.13-hotfix.5 | v1.12.13+hotfix.5 | stable | -| v1.9.1-hotfix.6 | v1.9.1+hotfix.6 | stable | -| v1.9.1-hotfix.5 | v1.9.1+hotfix.5 | stable | -| v1.9.1-hotfix.4 | v1.9.1+hotfix.4 | stable | -| v1.9.1-hotfix.2 | v1.9.1+hotfix.2 | stable | -| v1.7.8-hotfix.4 | v1.7.8+hotfix.4 | stable | +For a full list of releases, see the [releases page](https://github.com/slashwhy/flutter-sdk-image/releases) of this repository. ## Usage @@ -140,10 +89,7 @@ release_build: - flutter build apk ``` -Example Project: https://gitlab.com/mobiledevops/flutter-ci-demo - --- [Contributing](.github/CONTRIBUTING.md) - [Code of Conduct](.github/CODE_OF_CONDUCT.md)