Skip to content

Commit

Permalink
Chore: enable nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
brim-borium authored Nov 9, 2023
1 parent 069bdba commit 59ed71e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 65 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/nightly_flutter_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@<a href=\"https://github.com/slashwhy/flutter-sdk-image/releases/tag/\${{ steps.get-versions.outputs.CURRENT_TAG }}\"><img src=\"https://img.shields.io/badge/Current%20version-\${{ steps.get-versions.outputs.CURRENT_TAG }}-blue.svg\"/></a>@<a href=\"https://github.com/slashwhy/flutter-sdk-image/releases/tag/\${{ steps.get-versions.outputs.CURRENT_TAG }}\"><img src=\"https://img.shields.io/badge/Current%20version-\${{ steps.get-versions.outputs.LATEST_TAG }}-blue.svg\"/></a>@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
Expand All @@ -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 }}
58 changes: 2 additions & 56 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
<a href="https://github.com/slashwhy/flutter-sdk-image/releases/tag/3.13.9"><img src="https://img.shields.io/badge/Current%20version-3.13.9-blue.svg"/></a>

## 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

Expand Down Expand Up @@ -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)

0 comments on commit 59ed71e

Please sign in to comment.