diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7df43ca..00e286b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -108,8 +108,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.14.1 + digest: c7d29f5988d088627cf53bd6a223807c466066cf432c7cf5c36429ffc9e734f6 - name: Validate version.json and flutter_version.json with CUE run: | @@ -126,8 +126,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.14.1 + digest: c7d29f5988d088627cf53bd6a223807c466066cf432c7cf5c36429ffc9e734f6 - name: Generate test files with CUE run: | @@ -143,7 +143,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - + with: + ref: ${{ github.head_ref }} + - name: Setup NodeJS uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: @@ -151,16 +153,28 @@ jobs: 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@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6 + 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: @@ -210,8 +224,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.14.1 + digest: c7d29f5988d088627cf53bd6a223807c466066cf432c7cf5c36429ffc9e734f6 - name: Validate version.json with CUE run: cue vet config/version.cue -d '#Version' config/version.json diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index deb3a2c..91f14d3 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -26,8 +26,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: Read environment variables from the version manifest uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26477bc..9fee082 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,8 +33,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.14.1 + digest: c7d29f5988d088627cf53bd6a223807c466066cf432c7cf5c36429ffc9e734f6 - name: Read environment variables from the version manifest uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b2c34f..f0e4a8f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/update_version.yml b/.github/workflows/update_version.yml index ee7e74f..b04b630 100644 --- a/.github/workflows/update_version.yml +++ b/.github/workflows/update_version.yml @@ -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.14.1 + digest: c7d29f5988d088627cf53bd6a223807c466066cf432c7cf5c36429ffc9e734f6 - name: Validate version.json with CUE if: ${{ steps.update_flutter_version.outputs.result == 'true' }} @@ -156,8 +156,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.14.1 + digest: c7d29f5988d088627cf53bd6a223807c466066cf432c7cf5c36429ffc9e734f6 - name: Validate version.json with CUE run: cue vet config/version.cue -d '#Version' config/version.json diff --git a/docs/src/content.mdx b/docs/src/content.mdx index 0c78d24..dfc50f1 100644 --- a/docs/src/content.mdx +++ b/docs/src/content.mdx @@ -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). diff --git a/docs/src/package-lock.json b/docs/src/package-lock.json index 75aa069..1f0c186 100644 --- a/docs/src/package-lock.json +++ b/docs/src/package-lock.json @@ -335,6 +335,7 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", "license": "MIT", + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -471,9 +472,9 @@ } }, "node_modules/cross-env": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-10.0.0.tgz", - "integrity": "sha512-aU8qlEK/nHYtVuN4p7UQgAwVljzMg8hB4YK5ThRqD2l/ziSnryncPNn7bMLt5cFYsKVKBh8HqLqyCoTupEUu7Q==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-10.1.0.tgz", + "integrity": "sha512-GsYosgnACZTADcmEyJctkJIoqAhHjttw7RsFrVoJNXbsWWqaq6Ym+7kZjq6mS45O0jij6vtiReppKQEtqWy6Dw==", "license": "MIT", "dependencies": { "@epic-web/invariant": "^1.0.0", @@ -6040,6 +6041,7 @@ "resolved": "https://registry.npmjs.org/react/-/react-19.1.1.tgz", "integrity": "sha512-w8nqGImo45dmMIfljjMwOGtbmC/mk4CMYhWIicdSflH91J9TyCyczcPFXJzrZ/ZXcgGRFeP6BU0BEJTw6tZdfQ==", "license": "MIT", + "peer": true, "engines": { "node": ">=0.10.0" } diff --git a/readme.md b/readme.md index 32c89dd..a67459b 100644 --- a/readme.md +++ b/readme.md @@ -16,8 +16,8 @@ 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) @@ -123,7 +123,7 @@ docker build --target android --build-arg flutter_version=3.35.5 --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).