Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dotnet
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
devcontainer
dotnet
Compare revisions
669270649651c67fe14ead4f9c3129def0d4552d to 2262def87b1a62cd02800d30d42267db5feb5197
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/devcontainer/dotnet
Select target project
No results found
2262def87b1a62cd02800d30d42267db5feb5197
Select Git revision
Branches
master
Swap
Target
docker-images/devcontainer/dotnet
Select target project
docker-images/devcontainer/dotnet
1 result
669270649651c67fe14ead4f9c3129def0d4552d
Select Git revision
Branches
master
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
add multi version image
· e697fa06
Andri Joos
authored
4 months ago
e697fa06
add dotnet 9.0 support
· dbce85ee
Andri Joos
authored
4 months ago
dbce85ee
Merge branch 'multi_version_image'
· 2262def8
Andri Joos
authored
4 months ago
2262def8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+23
-3
23 additions, 3 deletions
.gitlab-ci.yml
.vscode/tasks.json
+31
-5
31 additions, 5 deletions
.vscode/tasks.json
Dockerfile
+3
-1
3 additions, 1 deletion
Dockerfile
with
57 additions
and
9 deletions
.gitlab-ci.yml
View file @
2262def8
...
...
@@ -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
This diff is collapsed.
Click to expand it.
.vscode/tasks.json
View file @
2262def8
...
...
@@ -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"
,
],
},
],
}
This diff is collapsed.
Click to expand it.
Dockerfile
View file @
2262def8
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"
...
...
This diff is collapsed.
Click to expand it.