Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flutter-android
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker images
flutter
flutter-android
Compare revisions
f3e6a8598229deb7da6dac658304c47d53311baf to bbfd5b90607eafddb2bce5a6737a0d3e170c0319
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
docker-images/flutter/flutter-android
Select target project
No results found
bbfd5b90607eafddb2bce5a6737a0d3e170c0319
Select Git revision
Branches
master
Swap
Target
docker-images/flutter/flutter-android
Select target project
docker-images/flutter/flutter-android
1 result
f3e6a8598229deb7da6dac658304c47d53311baf
Select Git revision
Branches
master
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
add multi version image
· 215f4f89
Andri Joos
authored
4 months ago
215f4f89
Merge branch 'multi_version_image'
· bbfd5b90
Andri Joos
authored
4 months ago
bbfd5b90
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+14
-5
14 additions, 5 deletions
.gitlab-ci.yml
.vscode/tasks.json
+17
-5
17 additions, 5 deletions
.vscode/tasks.json
Dockerfile
+6
-5
6 additions, 5 deletions
Dockerfile
with
37 additions
and
15 deletions
.gitlab-ci.yml
View file @
bbfd5b90
...
...
@@ -3,10 +3,19 @@ include:
ref
:
master
file
:
docker_hub.gitlab-ci.yml
build
:
extends
:
.build_image_job_template
variables
:
TAG_SUFFIX
:
android
IMAGE_BASENAME
:
${IMAGE_PREFIX}/flutter
.build_flutter_android
:
variables
:
BUILD_ARGS
:
FLUTTER_VERSION=${VERSION}
"
3.24.5"
:
extends
:
-
.build_flutter_android
-
.build_image_job_template
variables
:
DOCKER_BUILDX_PLATFORMS
:
linux/amd64
TAG_SUFFIX
:
android
IMAGE_BASENAME
:
${IMAGE_PREFIX}/flutter
IMAGE_NAME
:
${IMAGE_BASENAME}:3.24.5-${TAG_SUFFIX},${IMAGE_BASENAME}:3.24-${TAG_SUFFIX},${IMAGE_BASENAME}:3-${TAG_SUFFIX}
VERSION
:
3.24.5
IMAGE_NAME
:
${IMAGE_BASENAME}:${VERSION}-${TAG_SUFFIX},${IMAGE_BASENAME}:3.24-${TAG_SUFFIX},${IMAGE_BASENAME}:3-${TAG_SUFFIX}
This diff is collapsed.
Click to expand it.
.vscode/tasks.json
View file @
bbfd5b90
...
...
@@ -4,12 +4,24 @@
"version"
:
"2.0.0"
,
"tasks"
:
[
{
"label"
:
"
docker
build"
,
"label"
:
"build"
,
"command"
:
"docker"
,
"args"
:
[
"build"
,
"."
]
}
]
"--build-arg"
,
"FLUTTER_VERSION=${input:flutterVersion}"
,
"."
,
],
},
],
"inputs"
:
[
{
"id"
:
"flutterVersion"
,
"type"
:
"pickString"
,
"description"
:
"Choose flutter version"
,
"options"
:
[
"3.24.5"
,
],
},
],
}
This diff is collapsed.
Click to expand it.
Dockerfile
View file @
bbfd5b90
ARG
FLUTTER_VERSION="3.24.5"
ARG
DEPENDENCY_DIR="/tmp/dependencies"
ARG
ANDROID_HOME="/opt/android"
...
...
@@ -24,7 +25,7 @@ RUN apt update \
&&
mv
$TMP_DIR
/cmdline-tools/
*
$CMDLINETOOLS_DIR
FROM
andrijoos/flutter:
3.24.5
FROM
andrijoos/flutter:
${FLUTTER_VERSION}
ARG
DEPENDENCY_DIR
ARG
ANDROID_HOME
...
...
@@ -52,8 +53,8 @@ RUN yes "y" | flutter doctor --android-licenses \
&&
yes
| sdkmanager
--sdk_root
=
${
ANDROID_HOME
}
--licenses
# Build demo project/pipeline
#
RUN flutter create --project-name warmup -t app warmup
RUN
flutter create
--project-name
warmup
-t
app warmup
#
RUN cd warmup \
#
&& flutter pub get \
#
&& flutter build appbundle --release --target-platform android-arm,android-arm64,android-x64
RUN
cd
warmup
\
&&
flutter pub get
\
&&
flutter build appbundle
--release
--target-platform
android-arm,android-arm64,android-x64
This diff is collapsed.
Click to expand it.