Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • docker-images/devcontainer/dotnet
1 result
Show changes
Commits on Source (3)
......@@ -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"
......