Skip to content
Snippets Groups Projects
Commit 4669d2b5 authored by Andri Joos's avatar Andri Joos :blush:
Browse files

make image multi version capable

parent b8726960
No related branches found
No related tags found
No related merge requests found
include:
- project: docker-images/templates
ref: master
file: devcontainer_images.gitlab-ci.yml
file: docker_hub.gitlab-ci.yml
build:
extends: .build_image_job_template
variables:
TAG_SUFFIX: linux
IMAGE_BASENAME: ${IMAGE_PREFIX}/devcontainer-flutter
DOCKER_BUILDX_PLATFORMS: linux/amd64
.build_flutter_linux:
variables:
BUILD_ARGS: FLUTTER_VERSION=${VERSION}
"3.24.5":
extends:
- .build_flutter_linux
- .build_image_job_template
variables:
DOCKER_BUILDX_PLATFORMS: linux/amd64
TAG_SUFFIX: linux
IMAGE_BASENAME: ${IMAGE_PREFIX}/devcontainer-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}
......@@ -4,12 +4,27 @@
"version": "2.0.0",
"tasks": [
{
"label": "docker build",
"label": "buildx build",
"command": "docker",
"args": [
"buildx",
"build",
"."
]
}
]
"--platform",
"linux/amd64",
"--build-arg",
"FLUTTER_VERSION=${input:flutterVersion}",
".",
],
},
],
"inputs": [
{
"id": "flutterVersion",
"type": "pickString",
"description": "Choose flutter version",
"options": [
"3.24.5",
],
},
],
}
FROM andrijoos/flutter:3.24.5-linux
ARG FLUTTER_VERSION="3.24.5"
FROM andrijoos/flutter:${FLUTTER_VERSION}-linux
ARG USERNAME="ubuntu"
ARG WORKSPACE="/workdir"
......@@ -12,7 +14,15 @@ USER ${USERNAME}
WORKDIR ${WORKSPACE}
RUN dart --disable-analytics \
&& flutter config --no-analytics \
&& flutter config \
--no-analytics \
--no-enable-web \
--no-enable-linux-desktop \
--no-enable-macos-desktop \
--no-enable-windows-desktop \
--no-enable-ios \
--no-enable-fuchsia \
--enable-android \
&& flutter precache --universal --linux
# Build demo project/pipeline
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment