mirror of
https://github.com/gmeligio/flutter-docker-image.git
synced 2026-05-24 12:30:34 +00:00
Compare commits
61 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 95eb215ee8 | |||
| 0e2d25235e | |||
| 4c89b17e47 | |||
| 6ba4c8cfef | |||
| 58a2d212f3 | |||
| 127cbb632a | |||
| c19f914064 | |||
| b82eba5586 | |||
| c603e9ff57 | |||
| 223c7015e0 | |||
| 6a07a0c350 | |||
| c1e92cfff2 | |||
| 8ebf1d5f2d | |||
| e6de03067e | |||
| de1c26f02e | |||
| eff8b99ce8 | |||
| 2617bcbd9c | |||
| 601b8cafc4 | |||
| 3754d12911 | |||
| 2f9dd7c6ef | |||
| 77ab19fca2 | |||
| 2ceb305c23 | |||
| c0e670a1fc | |||
| 4f35f29701 | |||
| 491ca6e0d2 | |||
| e918555678 | |||
| 59d31d5a78 | |||
| 6731aafe02 | |||
| 77aa095e45 | |||
| 935ce4a44e | |||
| f6a36d6ba0 | |||
| 8a230fc3eb | |||
| 560211cd91 | |||
| 33ce70a0e4 | |||
| de7f1e6870 | |||
| c1ba187e66 | |||
| 3ca7c2269c | |||
| c22d64adab | |||
| 64172b2293 | |||
| 506923fb47 | |||
| e90a255935 | |||
| f4ef35fa9a | |||
| 41e24c433d | |||
| 745f5af23a | |||
| 240e03329a | |||
| 6b512de361 | |||
| 46c0c1e7df | |||
| c31a4e8405 | |||
| c2b7365f2f | |||
| c326519c16 | |||
| 0fd84b3699 | |||
| d917826c81 | |||
| 5520731ba6 | |||
| 0ff207ba45 | |||
| 8940179326 | |||
| 0d25c577cb | |||
| c569ba7b0c | |||
| ba9ff36db0 | |||
| 4cddcea7b4 | |||
| 0d31f67ad2 | |||
| 18b3e138b2 |
@@ -0,0 +1,66 @@
|
||||
name: 'Clean Runner Disk'
|
||||
description: 'Cleans the GitHub Actions runner disk by removing unused packages and toolchains to free up space.'
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Show disk usage before cleaning
|
||||
run: df -h
|
||||
shell: bash
|
||||
- name: List installed packages before cleaning
|
||||
run: dpkg --get-selections | grep -v deinstall
|
||||
shell: bash
|
||||
- name: Clean runner disk
|
||||
run: |
|
||||
# Remove PHP
|
||||
sudo apt-get remove -y 'php.*' --fix-missing || echo "::warning::The command [sudo apt-get remove -y 'php.*' --fix-missing] failed to complete successfully. Proceeding..."
|
||||
# Remove databases
|
||||
sudo apt-get remove -y '^mongodb-.*' --fix-missing || echo "::warning::The command [sudo apt-get remove -y '^mongodb-.*' --fix-missing] failed to complete successfully. Proceeding..."
|
||||
sudo apt-get remove -y '^mysql-.*' --fix-missing || echo "::warning::The command [sudo apt-get remove -y '^mysql-.*' --fix-missing] failed to complete successfully. Proceeding..."
|
||||
# Remove apt packages
|
||||
sudo apt-get autoremove -y || echo "::warning::The command [sudo apt-get autoremove -y] failed to complete successfully. Proceeding..."
|
||||
sudo apt-get clean || echo "::warning::The command [sudo apt-get clean] failed to complete successfully. Proceeding..."
|
||||
# Remove Java (JDKs)
|
||||
sudo rm -rf /usr/lib/jvm
|
||||
# Remove .NET SDKs
|
||||
sudo rm -rf /usr/share/dotnet
|
||||
sudo apt-get remove -y '^aspnetcore-.*' || echo "::warning::The command [sudo apt-get remove -y '^aspnetcore-.*'] failed to complete successfully. Proceeding..."
|
||||
sudo apt-get remove -y '^dotnet-.*' --fix-missing || echo "::warning::The command [sudo apt-get remove -y '^dotnet-.*' --fix-missing] failed to complete successfully. Proceeding..."
|
||||
# Remove Swift toolchain
|
||||
sudo apt-get remove -y '^llvm-.*' --fix-missing || echo "::warning::The command [sudo apt-get remove -y '^llvm-.*' --fix-missing] failed to complete successfully. Proceeding..."
|
||||
sudo rm -rf /usr/share/swift
|
||||
# Remove Haskell (GHC)
|
||||
sudo rm -rf /usr/local/.ghcup
|
||||
# Remove Julia
|
||||
sudo rm -rf /usr/local/julia*
|
||||
# Remove Android SDKs
|
||||
sudo rm -rf /usr/local/lib/android
|
||||
# Remove browsers
|
||||
sudo apt-get remove -y google-chrome-stable firefox --fix-missing || echo "::warning::The command [sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing] failed to complete successfully. Proceeding..."
|
||||
sudo rm -rf /usr/local/share/chromium /opt/microsoft /opt/google
|
||||
# Remove cloud tools
|
||||
sudo rm -rf /opt/az
|
||||
sudo apt-get remove -y azure-cli mono-devel libgl1-mesa-dri --fix-missing || echo "::warning::The command [sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing] failed to complete successfully. Proceeding..."
|
||||
sudo apt-get remove -y google-cloud-sdk --fix-missing || echo "::debug::The command [sudo apt-get remove -y google-cloud-sdk --fix-missing] failed to complete successfully. Proceeding..."
|
||||
sudo apt-get remove -y google-cloud-cli --fix-missing || echo "::debug::The command [sudo apt-get remove -y google-cloud-cli --fix-missing] failed to complete successfully. Proceeding..."
|
||||
# Remove PowerShell
|
||||
sudo apt-get remove -y powershell --fix-missing || echo "::warning::The command [sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing] failed to complete successfully. Proceeding..."
|
||||
sudo rm -rf /usr/local/share/powershell
|
||||
# Remove CodeQL and other toolcaches
|
||||
sudo rm -rf /opt/hostedtoolcache
|
||||
# Remove Kubernetes
|
||||
sudo rm -rf /usr/local/bin/minikube
|
||||
# Remove Rust
|
||||
sudo rm -rf /home/runner/.rustup /etc/skel/.rustup
|
||||
shell: bash
|
||||
- name: Show disk usage after cleaning
|
||||
run: df -h
|
||||
shell: bash
|
||||
- name: Top-level directories after cleaning
|
||||
run: du -h -d1 / | sort -hr | head -n 20 || true
|
||||
shell: bash
|
||||
- name: Detailed file sizes after cleaning
|
||||
run: find / -type f -exec du -h {} + 2>/dev/null | sort -hr | head -n 1000 || true
|
||||
shell: bash
|
||||
- name: List installed packages after cleaning
|
||||
run: dpkg --get-selections | grep -v deinstall
|
||||
shell: bash
|
||||
@@ -26,7 +26,7 @@
|
||||
"^Dockerfile$"
|
||||
],
|
||||
"matchStrings": [
|
||||
"#\\s*renovate:\\s*release=(?<release>.*?) depName=(?<depName>.*?)\\sARG .*?_VERSION=\"(?<currentValue>.*)\"\\s"
|
||||
"#\\s*renovate:\\s*suite=(?<suite>.*?) depName=(?<depName>.*?)\\sARG .*?_VERSION=\"(?<currentValue>.*)\"\\s"
|
||||
],
|
||||
"registryUrlTemplate": "https://deb.debian.org/debian?{{#if release }}release={{release}}{{else}}suite=stable{{/if}}&components=main,contrib,non-free&binaryArch=amd64",
|
||||
"datasourceTemplate": "deb"
|
||||
|
||||
+47
-30
@@ -18,17 +18,17 @@ 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.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Read environment variables from the version manifest
|
||||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
env:
|
||||
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
|
||||
IMAGE_REPOSITORY_NAME: ${{ env.IMAGE_REPOSITORY_NAME }}
|
||||
@@ -38,8 +38,20 @@ jobs:
|
||||
const script = require('./script/setEnvironmentVariables.js')
|
||||
return await script({ core })
|
||||
|
||||
- name: Clean runner disk
|
||||
uses: ./.github/actions/clean-runner-disk
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
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: Load image metadata
|
||||
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
|
||||
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
|
||||
id: metadata
|
||||
with:
|
||||
images: |
|
||||
@@ -47,15 +59,6 @@ jobs:
|
||||
tags: |
|
||||
type=raw,value=${{ env.FLUTTER_VERSION }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.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@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
|
||||
with:
|
||||
@@ -102,14 +105,14 @@ jobs:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Setup CUE
|
||||
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
|
||||
with:
|
||||
repo: cue-lang/cue
|
||||
tag: v0.13.0
|
||||
digest: 59ba96137da07cd2cdd2e17ec33af81f850126f022f25dd96516f0b42071b6a9
|
||||
tag: v0.15.0
|
||||
digest: 06925fc1e5174591cef0b1e42ac32cff4271804742cd20893de1793b6d82d460
|
||||
|
||||
- name: Validate version.json and flutter_version.json with CUE
|
||||
run: |
|
||||
@@ -120,14 +123,14 @@ jobs:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Setup CUE
|
||||
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
|
||||
with:
|
||||
repo: cue-lang/cue
|
||||
tag: v0.13.0
|
||||
digest: 59ba96137da07cd2cdd2e17ec33af81f850126f022f25dd96516f0b42071b6a9
|
||||
tag: v0.15.0
|
||||
digest: 06925fc1e5174591cef0b1e42ac32cff4271804742cd20893de1793b6d82d460
|
||||
|
||||
- name: Generate test files with CUE
|
||||
run: |
|
||||
@@ -142,25 +145,39 @@ jobs:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
- name: Setup NodeJS
|
||||
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
||||
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
|
||||
with:
|
||||
cache: npm
|
||||
cache-dependency-path: docs/src/package-lock.json
|
||||
node-version: lts/*
|
||||
|
||||
- name: Generate authentication token with GitHub App to trigger Actions
|
||||
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
|
||||
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
|
||||
run: |
|
||||
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:
|
||||
@@ -174,13 +191,13 @@ jobs:
|
||||
password: ${{ github.token }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Read version.json
|
||||
id: version-json
|
||||
run: |
|
||||
{
|
||||
echo "content<<EOF"
|
||||
echo "content<<EOF"
|
||||
cat ./config/version.json
|
||||
echo "EOF"
|
||||
} >> $GITHUB_OUTPUT
|
||||
@@ -210,8 +227,8 @@ jobs:
|
||||
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
|
||||
with:
|
||||
repo: cue-lang/cue
|
||||
tag: v0.13.0
|
||||
digest: 59ba96137da07cd2cdd2e17ec33af81f850126f022f25dd96516f0b42071b6a9
|
||||
tag: v0.15.0
|
||||
digest: 06925fc1e5174591cef0b1e42ac32cff4271804742cd20893de1793b6d82d460
|
||||
|
||||
- name: Validate version.json with CUE
|
||||
run: cue vet config/version.cue -d '#Version' config/version.json
|
||||
|
||||
@@ -14,7 +14,7 @@ jobs:
|
||||
VERSION_MANIFEST: config/version.json
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
with:
|
||||
# TODO: Fetch only a few commits after using --unreleased in git-cliff
|
||||
# Fetch all commits to use as input for the changelog generation
|
||||
@@ -26,11 +26,11 @@ jobs:
|
||||
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
|
||||
with:
|
||||
repo: orhun/git-cliff
|
||||
tag: v2.8.0
|
||||
digest: 17da092783079c63a0fb14c24fbfa0d3b589e225c6ef01c93111e39cecbc88e8
|
||||
tag: v2.10.1
|
||||
digest: 6abe8a3e112b266dd00abf9089a8052ddf7314f39e1c53e192edf0652abca4eb
|
||||
|
||||
- name: Read environment variables from the version manifest
|
||||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
env:
|
||||
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
|
||||
IMAGE_REPOSITORY_NAME: ${{ env.IMAGE_REPOSITORY_NAME }}
|
||||
@@ -45,7 +45,7 @@ jobs:
|
||||
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@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
|
||||
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
|
||||
id: app-token
|
||||
with:
|
||||
app-id: ${{ secrets.VERIFIED_COMMIT_ID }}
|
||||
|
||||
@@ -21,10 +21,10 @@ jobs:
|
||||
ANDROID_BUILD_TOOLS_VERSION: 30.0.3
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
|
||||
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
@@ -33,11 +33,11 @@ jobs:
|
||||
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
|
||||
with:
|
||||
repo: cue-lang/cue
|
||||
tag: v0.13.0
|
||||
digest: 59ba96137da07cd2cdd2e17ec33af81f850126f022f25dd96516f0b42071b6a9
|
||||
tag: v0.15.0
|
||||
digest: 06925fc1e5174591cef0b1e42ac32cff4271804742cd20893de1793b6d82d460
|
||||
|
||||
- name: Read environment variables from the version manifest
|
||||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
env:
|
||||
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
|
||||
IMAGE_REPOSITORY_NAME: ${{ env.IMAGE_REPOSITORY_NAME }}
|
||||
@@ -47,8 +47,11 @@ jobs:
|
||||
const script = require('./script/setEnvironmentVariables.js')
|
||||
return await script({ core })
|
||||
|
||||
- name: Clean runner disk
|
||||
uses: ./.github/actions/clean-runner-disk
|
||||
|
||||
- name: Load image metadata
|
||||
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
|
||||
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
|
||||
id: metadata
|
||||
with:
|
||||
images: |
|
||||
@@ -82,4 +85,3 @@ jobs:
|
||||
with:
|
||||
image: ${{ fromJSON(steps.metadata.outputs.json).tags[0] }}
|
||||
config: test/android.yml
|
||||
|
||||
@@ -23,10 +23,10 @@ jobs:
|
||||
VERSION_MANIFEST: config/version.json
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Read environment variables from the version manifest
|
||||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
env:
|
||||
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
|
||||
IMAGE_REPOSITORY_NAME: ${{ env.IMAGE_REPOSITORY_NAME }}
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
return await script({ core })
|
||||
|
||||
- name: Load image metadata
|
||||
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
|
||||
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
|
||||
id: metadata
|
||||
with:
|
||||
images: |
|
||||
@@ -51,20 +51,20 @@ jobs:
|
||||
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
|
||||
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
|
||||
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ github.token }}
|
||||
|
||||
- name: Login to Quay.io
|
||||
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
|
||||
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
|
||||
with:
|
||||
registry: quay.io
|
||||
username: ${{ secrets.QUAY_USERNAME }}
|
||||
@@ -96,10 +96,10 @@ jobs:
|
||||
VERSION_MANIFEST: config/version.json
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Read environment variables from the version manifest
|
||||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
env:
|
||||
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
|
||||
IMAGE_REPOSITORY_NAME: ${{ env.IMAGE_REPOSITORY_NAME }}
|
||||
@@ -110,7 +110,7 @@ jobs:
|
||||
return await script({ core })
|
||||
|
||||
- name: Update Docker Hub description
|
||||
uses: peter-evans/dockerhub-description@432a30c9e07499fd01da9f8a49f0faf9e0ca5b77 # v4.0.2
|
||||
uses: peter-evans/dockerhub-description@1b9a80c056b620d92cedb9d9b5a223409c68ddfa # v5.0.0
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
@@ -128,10 +128,10 @@ jobs:
|
||||
IMAGE_REPOSITORY_NAME: flutter-android
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
|
||||
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
@@ -147,7 +147,7 @@ jobs:
|
||||
sarif-file: sarif.json
|
||||
|
||||
- name: Upload the results to GitHub's code scanning dashboard
|
||||
uses: github/codeql-action/upload-sarif@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
|
||||
uses: github/codeql-action/upload-sarif@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
|
||||
with:
|
||||
sarif_file: sarif.json
|
||||
|
||||
@@ -157,10 +157,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Generate authentication token with GitHub App to trigger Actions
|
||||
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
|
||||
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
|
||||
id: app-token
|
||||
with:
|
||||
app-id: ${{ secrets.VERIFIED_COMMIT_ID }}
|
||||
@@ -181,7 +181,7 @@ jobs:
|
||||
needs: release_android
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
with:
|
||||
# TODO: Fetch only a few commits after using --unreleased in git-cliff
|
||||
# Fetch all commits to use as input for the changelog generation
|
||||
@@ -193,8 +193,8 @@ jobs:
|
||||
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
|
||||
with:
|
||||
repo: orhun/git-cliff
|
||||
tag: v2.8.0
|
||||
digest: 17da092783079c63a0fb14c24fbfa0d3b589e225c6ef01c93111e39cecbc88e8
|
||||
tag: v2.10.1
|
||||
digest: 6abe8a3e112b266dd00abf9089a8052ddf7314f39e1c53e192edf0652abca4eb
|
||||
|
||||
- name: Get the tag details
|
||||
id: get-tag-details
|
||||
|
||||
@@ -34,12 +34,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Run analysis
|
||||
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
|
||||
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@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
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@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
|
||||
uses: github/codeql-action/upload-sarif@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
|
||||
with:
|
||||
sarif_file: results.sarif
|
||||
|
||||
@@ -14,10 +14,10 @@ jobs:
|
||||
VERSION_MANIFEST: config/version.json
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Generate authentication token with GitHub App to trigger Actions
|
||||
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
|
||||
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
|
||||
id: app-token
|
||||
with:
|
||||
app-id: ${{ secrets.VERIFIED_COMMIT_ID }}
|
||||
@@ -26,7 +26,7 @@ jobs:
|
||||
owner: ${{ github.repository_owner }}
|
||||
|
||||
- name: Read environment variables from the version manifest
|
||||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
env:
|
||||
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
|
||||
IMAGE_REPOSITORY_NAME: ${{ env.IMAGE_REPOSITORY_NAME }}
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
return await script({ core })
|
||||
|
||||
- name: Create Tag for a New Flutter Version
|
||||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
env:
|
||||
OLD_FLUTTER_VERSION: ${{ vars.FLUTTER_VERSION }}
|
||||
NEW_FLUTTER_VERSION: ${{ env.FLUTTER_VERSION }}
|
||||
|
||||
@@ -20,11 +20,11 @@ jobs:
|
||||
flutter_version_artifact_id: ${{ steps.upload-version.outputs.artifact-id }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Update latest Flutter version
|
||||
id: update_flutter_version
|
||||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
with:
|
||||
script: |
|
||||
const script = require('./script/updateFlutterVersion.js')
|
||||
@@ -35,8 +35,8 @@ jobs:
|
||||
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
|
||||
with:
|
||||
repo: cue-lang/cue
|
||||
tag: v0.13.0
|
||||
digest: 59ba96137da07cd2cdd2e17ec33af81f850126f022f25dd96516f0b42071b6a9
|
||||
tag: v0.15.0
|
||||
digest: 06925fc1e5174591cef0b1e42ac32cff4271804742cd20893de1793b6d82d460
|
||||
|
||||
- name: Validate version.json with CUE
|
||||
if: ${{ steps.update_flutter_version.outputs.result == 'true' }}
|
||||
@@ -45,11 +45,11 @@ jobs:
|
||||
- name: Upload artifact with the new Flutter version
|
||||
if: ${{ steps.update_flutter_version.outputs.result == 'true' }}
|
||||
id: upload-version
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
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
|
||||
@@ -62,6 +62,7 @@ jobs:
|
||||
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 }}
|
||||
@@ -70,7 +71,7 @@ jobs:
|
||||
password: ${{ github.token }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
# TODO: Workaround because actions/download-artifact can't overwrite existing files
|
||||
# Check if this workaround can be removed after the following issues are fixed:
|
||||
@@ -80,22 +81,20 @@ jobs:
|
||||
run: rm config/flutter_version.json
|
||||
|
||||
- name: Download artifact with the new Flutter version
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
with:
|
||||
artifact-ids: ${{ needs.update_flutter_version.outputs.flutter_version_artifact_id }}
|
||||
path: config
|
||||
# Download to the configured path instead of separated directories by artifact id
|
||||
merge-multiple: true
|
||||
|
||||
- name: Copy Flutter version into version manifest and export FLUTTER_* environment variables
|
||||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
||||
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@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
with:
|
||||
script: |
|
||||
const script = require('./script/updateFastlaneVersion.js')
|
||||
@@ -123,19 +122,37 @@ jobs:
|
||||
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@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
# TODO: Workaround because actions/download-artifact can't overwrite existing files
|
||||
# Check if this workaround can be removed after the following issues are fixed:
|
||||
@@ -145,19 +162,17 @@ jobs:
|
||||
run: rm config/version.json
|
||||
|
||||
- name: Download artifact with the new Flutter version
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
with:
|
||||
artifact-ids: ${{ 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: Setup CUE
|
||||
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
|
||||
with:
|
||||
repo: cue-lang/cue
|
||||
tag: v0.13.0
|
||||
digest: 59ba96137da07cd2cdd2e17ec33af81f850126f022f25dd96516f0b42071b6a9
|
||||
tag: v0.15.0
|
||||
digest: 06925fc1e5174591cef0b1e42ac32cff4271804742cd20893de1793b6d82d460
|
||||
|
||||
- name: Validate version.json with CUE
|
||||
run: cue vet config/version.cue -d '#Version' config/version.json
|
||||
@@ -173,7 +188,7 @@ jobs:
|
||||
VERSION_MANIFEST: config/version.json
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
# TODO: Workaround because actions/download-artifact can't overwrite existing files
|
||||
# Check if this workaround can be removed after the following issues are fixed:
|
||||
@@ -181,18 +196,24 @@ jobs:
|
||||
# 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
|
||||
rm config/flutter_version.json config/version.json test/android.yml
|
||||
|
||||
- name: Download artifact with the new Flutter version
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
- 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@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
||||
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
|
||||
with:
|
||||
cache: npm
|
||||
cache-dependency-path: docs/src/package-lock.json
|
||||
@@ -205,7 +226,7 @@ jobs:
|
||||
npm run build
|
||||
|
||||
- name: Read environment variables from the version manifest
|
||||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
env:
|
||||
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
|
||||
IMAGE_REPOSITORY_NAME: ${{ env.IMAGE_REPOSITORY_NAME }}
|
||||
@@ -213,24 +234,24 @@ jobs:
|
||||
with:
|
||||
script: |
|
||||
const script = require('./script/setEnvironmentVariables.js')
|
||||
return await script({ core })
|
||||
return await script({ core })
|
||||
|
||||
- name: Create commit message variable
|
||||
run: |
|
||||
echo "COMMIT_MESSAGE=chore(release): update flutter dependencies in version.json for ${{ env.FLUTTER_VERSION }}" >> $GITHUB_ENV
|
||||
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@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
|
||||
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
|
||||
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
|
||||
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7.0.11
|
||||
with:
|
||||
commit-message: ${{ env.COMMIT_MESSAGE }}
|
||||
branch: update-flutter-dependencies/${{ env.FLUTTER_VERSION }}
|
||||
|
||||
@@ -25,16 +25,16 @@ jobs:
|
||||
VERSION_MANIFEST: config/version.json
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
|
||||
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@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
env:
|
||||
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
|
||||
IMAGE_REPOSITORY_NAME: ${{ env.IMAGE_REPOSITORY_NAME }}
|
||||
|
||||
+1
-1
@@ -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:
|
||||
|
||||
|
||||
+25
-21
@@ -1,19 +1,19 @@
|
||||
FROM debian:12.11-slim@sha256:b1a741487078b369e78119849663d7f1a5341ef2768798f7b7406c4240f86aef AS flutter
|
||||
FROM debian:13.2-slim@sha256:4bcb9db66237237d03b55b969271728dd3d955eaaa254b9db8a3db94550b1885 AS flutter
|
||||
|
||||
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
|
||||
|
||||
ENV LANG=C.UTF-8
|
||||
|
||||
# renovate: release=bullseye depName=curl
|
||||
ARG CURL_VERSION="7.88.1-10+deb12u12"
|
||||
# renovate: release=bullseye depName=git
|
||||
ARG GIT_VERSION="1:2.39.5-0+deb12u2"
|
||||
# renovate: release=bullseye depName=lcov
|
||||
ARG LCOV_VERSION="1.16-1"
|
||||
# renovate: release=bullseye depName=ca-certificates
|
||||
ARG CA_CERTIFICATES_VERSION="20230311"
|
||||
# renovate: release=bullseye depName=unzip
|
||||
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 \
|
||||
@@ -93,14 +93,14 @@ FROM flutter AS fastlane
|
||||
|
||||
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
|
||||
|
||||
# renovate: release=bullseye depName=ruby-dev
|
||||
ARG RUBY_VERSION="1:3.1"
|
||||
# renovate: release=bullseye depName=build-essential
|
||||
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" \
|
||||
@@ -142,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: release=bullseye depName=openjdk-17-jdk-headless
|
||||
ARG OPENJDK_17_JDK_HEADLESS_VERSION="17.0.16+8-1~deb12u1"
|
||||
# renovate: release=bullseye depName=sudo
|
||||
ARG SUDO_VERSION="1.9.13p3-1+deb12u1"
|
||||
# renovate: suite=bookworm depName=openjdk-17-jdk-headless
|
||||
ARG OPENJDK_17_JDK_HEADLESS_VERSION="17.0.18+8-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
|
||||
@@ -172,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
|
||||
|
||||
|
||||
+85
-19
@@ -1,13 +1,95 @@
|
||||
# Changelog
|
||||
## [3.41.2] - 2026-02-20
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- *(release)* Upgrade flutter to 3.41.2 (#427)
|
||||
## [3.41.1] - 2026-02-16
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- *(release)* Upgrade flutter to 3.41.1 (#426)
|
||||
## [3.41.0] - 2026-02-12
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- *(release)* Upgrade flutter to 3.41.0 (#424)
|
||||
## [3.38.9] - 2026-01-30
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- *(release)* Upgrade flutter to 3.38.9 (#420)
|
||||
## [3.38.8] - 2026-01-28
|
||||
|
||||
### 💼 Other
|
||||
|
||||
- Run npm update (#418)
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- *(release)* Upgrade flutter to 3.38.8 (#419)
|
||||
## [3.38.7] - 2026-01-15
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- *(release)* Upgrade flutter to 3.38.7 (#416)
|
||||
## [3.38.6] - 2026-01-09
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- Clean runner disk (#412)
|
||||
- Clean runner disk on ci.yml (#413)
|
||||
- *(release)* Upgrade flutter to 3.38.6 (#415)
|
||||
## [3.38.5] - 2025-12-22
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- *(release)* Upgrade flutter to 3.38.5 (#408)
|
||||
## [3.38.4] - 2025-12-08
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- *(release)* Upgrade flutter to 3.38.4 (#406)
|
||||
## [3.38.3] - 2025-11-24
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- *(release)* Upgrade flutter to 3.38.3 (#401)
|
||||
## [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
|
||||
@@ -18,7 +100,6 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
- 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
|
||||
@@ -28,7 +109,6 @@ All notable changes to this project will be documented in this file.
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- *(release)* Update flutter dependencies in version.json for 3.35.1 (#371)
|
||||
|
||||
## [3.32.8] - 2025-07-29
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
@@ -38,34 +118,29 @@ All notable changes to this project will be documented in this file.
|
||||
### ⚙️ 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
|
||||
@@ -73,20 +148,17 @@ All notable changes to this project will be documented in this file.
|
||||
- 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
|
||||
@@ -96,7 +168,6 @@ All notable changes to this project will be documented in this file.
|
||||
- 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
|
||||
@@ -127,7 +198,6 @@ All notable changes to this project will be documented in this file.
|
||||
- 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
|
||||
@@ -137,7 +207,6 @@ All notable changes to this project will be documented in this file.
|
||||
- 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
|
||||
@@ -163,7 +232,6 @@ All notable changes to this project will be documented in this file.
|
||||
- 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
|
||||
@@ -535,5 +603,3 @@ All notable changes to this project will be documented in this file.
|
||||
- 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)
|
||||
|
||||
<!-- generated by git-cliff -->
|
||||
|
||||
@@ -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
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"flutter": {
|
||||
"channel": "stable",
|
||||
"commit": "a402d9a4376add5bc2d6b1e33e53edaae58c07f8",
|
||||
"version": "3.35.3"
|
||||
"commit": "90673a4eef275d1a6692c26ac80d6d746d41a73a",
|
||||
"version": "3.41.2"
|
||||
}
|
||||
}
|
||||
|
||||
+6
-6
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"flutter": {
|
||||
"channel": "stable",
|
||||
"commit": "a402d9a4376add5bc2d6b1e33e53edaae58c07f8",
|
||||
"version": "3.35.3"
|
||||
"commit": "90673a4eef275d1a6692c26ac80d6d746d41a73a",
|
||||
"version": "3.41.2"
|
||||
},
|
||||
"android": {
|
||||
"platforms": [
|
||||
@@ -11,22 +11,22 @@
|
||||
}
|
||||
],
|
||||
"gradle": {
|
||||
"version": "8.12"
|
||||
"version": "8.14"
|
||||
},
|
||||
"buildTools": {
|
||||
"version": "35.0.0"
|
||||
},
|
||||
"cmdlineTools": {
|
||||
"version": "19.0"
|
||||
"version": "20.0"
|
||||
},
|
||||
"ndk": {
|
||||
"version": "27.0.12077973"
|
||||
"version": "28.2.13676358"
|
||||
},
|
||||
"cmake": {
|
||||
"version": "3.22.1"
|
||||
}
|
||||
},
|
||||
"fastlane": {
|
||||
"version": "2.228.0"
|
||||
"version": "2.232.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ docker build --target android --build-arg flutter_version=${flutterVersion} --bu
|
||||
|
||||
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`?
|
||||
### 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).
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Generated
+3237
-7428
File diff suppressed because it is too large
Load Diff
+32
-22
@@ -1,24 +1,34 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,39 +16,39 @@ The images includes the minimum tools to run Flutter and build apps. The version
|
||||
* [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)
|
||||
* [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.35.3.
|
||||
* Installed Flutter SDK 3.41.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.228.0.
|
||||
* Cached Fastlane gem 2.232.1.
|
||||
* 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: 36
|
||||
* Android NDK: 27.0.12077973
|
||||
* Gradle: 8.12
|
||||
* Android NDK: 28.2.13676358
|
||||
* Gradle: 8.14
|
||||
|
||||
## Running Containers
|
||||
|
||||
| Registry | flutter-android |
|
||||
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
|
||||
| Docker Hub | [gmeligio/flutter-android:3.35.3](https://hub.docker.com/r/gmeligio/flutter-android) |
|
||||
| GitHub Container Registry | [ghcr.io/gmeligio/flutter-android:3.35.3](https://github.com/gmeligio/flutter-docker-image/pkgs/container/flutter-android) |
|
||||
| Quay | [quay.io/gmeligio/flutter-android:3.35.3](https://quay.io/repository/gmeligio/flutter-android) |
|
||||
| Docker Hub | [gmeligio/flutter-android:3.41.2](https://hub.docker.com/r/gmeligio/flutter-android) |
|
||||
| GitHub Container Registry | [ghcr.io/gmeligio/flutter-android:3.41.2](https://github.com/gmeligio/flutter-docker-image/pkgs/container/flutter-android) |
|
||||
| Quay | [quay.io/gmeligio/flutter-android:3.41.2](https://quay.io/repository/gmeligio/flutter-android) |
|
||||
|
||||
On the terminal:
|
||||
|
||||
```bash
|
||||
# From GitHub Container Registry
|
||||
docker run --rm -it ghcr.io/gmeligio/flutter-android:3.35.3 bash
|
||||
docker run --rm -it ghcr.io/gmeligio/flutter-android:3.41.2 bash
|
||||
```
|
||||
|
||||
On a workflow in GitHub Actions:
|
||||
@@ -58,7 +58,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
container:
|
||||
image: ghcr.io/gmeligio/flutter-android:3.35.3
|
||||
image: ghcr.io/gmeligio/flutter-android:3.41.2
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
@@ -70,7 +70,7 @@ On a `.gitlab-ci.yml` in GitLab CI:
|
||||
|
||||
```yaml
|
||||
build:
|
||||
image: ghcr.io/gmeligio/flutter-android:3.35.3
|
||||
image: ghcr.io/gmeligio/flutter-android:3.41.2
|
||||
script:
|
||||
- flutter build apk
|
||||
```
|
||||
@@ -91,20 +91,20 @@ bundle exec fastlane
|
||||
|
||||
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: gmeligio/flutter-android:3.35.3
|
||||
* Flutter version: 3.35.3
|
||||
* Docker image: gmeligio/flutter-android:3.41.2
|
||||
* Flutter version: 3.41.2
|
||||
|
||||
## Building Locally
|
||||
|
||||
The android.Dockerfile expects a few arguments:
|
||||
|
||||
* `flutter_version <string>`: The version of Flutter to use when building. Example: 3.35.3
|
||||
* `flutter_version <string>`: The version of Flutter to use when building. Example: 3.41.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.35.3 --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 .
|
||||
docker build --target android --build-arg flutter_version=3.41.2 --build-arg fastlane_version=2.232.1 --build-arg android_build_tools_version=35.0.0 --build-arg android_platform_versions="36" -t android-test .
|
||||
```
|
||||
|
||||
## Roadmap
|
||||
@@ -123,7 +123,7 @@ docker build --target android --build-arg flutter_version=3.35.3 --build-arg fas
|
||||
|
||||
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`?
|
||||
### 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).
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
java -version 2>&1 | awk -F[\".] '/version/ {print $2}'
|
||||
@@ -0,0 +1 @@
|
||||
jq -r '.releases[] | select(.channel=="stable") | max_by(.release_date) | .version'
|
||||
+4
-4
@@ -30,7 +30,7 @@ commandTests:
|
||||
args:
|
||||
- /home/flutter/sdks/android-sdk/ndk
|
||||
expectedOutput:
|
||||
- 27.0.12077973
|
||||
- 28.2.13676358
|
||||
- name: CMake is pinned
|
||||
command: ls
|
||||
args:
|
||||
@@ -84,12 +84,12 @@ commandTests:
|
||||
excludedOutput:
|
||||
- Sending anonymous analytics information
|
||||
fileContentTests:
|
||||
- name: Android SDK Command-line Tools is version 19.0
|
||||
- name: Android SDK Command-line Tools is version 20.0
|
||||
path: /home/flutter/sdks/android-sdk/cmdline-tools/latest/source.properties
|
||||
expectedContents:
|
||||
- |-
|
||||
Pkg.Revision=19.0
|
||||
Pkg.Path=cmdline-tools;19.0
|
||||
Pkg.Revision=20.0
|
||||
Pkg.Path=cmdline-tools;20.0
|
||||
Pkg.Desc=Android SDK Command-line Tools
|
||||
- name: Dart and Flutter analytics are disabled
|
||||
path: /home/flutter/.dart-tool/dart-flutter-telemetry.config
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
# escape=`
|
||||
|
||||
FROM mcr.microsoft.com/windows/servercore:ltsc2025@sha256:570916ae0393ca7784819b7ab17776b958ca702922c56dda1ae4e0eaadcac57f as flutter
|
||||
FROM mcr.microsoft.com/windows/servercore:ltsc2025@sha256:79aa6a176b2e4f1786eb29c4facd33077769eddde4c4a650aea552f6320893c7 as flutter
|
||||
|
||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user