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

Merge branch 'multi_version_image'

parents 66927064 dbce85ee
No related branches found
No related tags found
No related merge requests found
Pipeline #7612 canceled with stage
......@@ -3,8 +3,28 @@ include:
ref: master
file: devcontainer_images.gitlab-ci.yml
build:
variables:
IMAGE_BASENAME: ${IMAGE_PREFIX}/devcontainer-dotnet
.build_old_dotnet:
extends: .build_old_version
variables:
IMAGE_NAME: ${IMAGE_BASENAME}:${VERSION}
BUILD_ARGS: DOTNET_VERSION=${VERSION}
.build_dotnet:
extends: .build_image_job_template
variables:
IMAGE_BASENAME: ${IMAGE_PREFIX}/devcontainer-dotnet
IMAGE_NAME: ${IMAGE_BASENAME}:8.0
IMAGE_NAME: ${IMAGE_BASENAME}:${VERSION}
BUILD_ARGS: DOTNET_VERSION=${VERSION}
"8.0": # LTS
extends: .build_dotnet
variables:
VERSION: 8.0
"9.0": # STS
extends: .build_dotnet
variables:
VERSION: 9.0
......@@ -4,12 +4,38 @@
"version": "2.0.0",
"tasks": [
{
"label": "docker build",
"label": "build",
"command": "docker",
"args": [
"build",
"."
]
}
]
"--build-arg",
"DOTNET_VERSION=${input:dotnetVersion}",
".",
],
},
{
"label": "buildx build",
"command": "docker",
"args": [
"buildx",
"build",
"--build-arg",
"DOTNET_VERSION=${input:dotnetVersion}",
"--platform",
"linux/arm64,linux/amd64",
".",
],
},
],
"inputs": [
{
"id": "dotnetVersion",
"type": "pickString",
"description": "Choose dotnet image version",
"options": [
"8.0",
"9.0",
],
},
],
}
FROM mcr.microsoft.com/dotnet/sdk:8.0
ARG DOTNET_VERSION="8.0"
FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION}
ARG USERNAME="vscode"
ARG USER_UID="1000"
......
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