Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit 7d2d5ad

Browse files
authored
fix(dotnet): lock the installed .NET version (#707)
* fix(dotnet): lock the installed dotnet version * chore(tests): missing bracket
1 parent a6bb344 commit 7d2d5ad

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,10 @@ RUN gimme | bash
412412
#
413413
################################################################################
414414
WORKDIR /tmp
415+
ENV DOTNET_VERSION 6.0
415416
RUN wget https://dot.net/v1/dotnet-install.sh
416417
RUN chmod u+x /tmp/dotnet-install.sh
417-
RUN /tmp/dotnet-install.sh -c Current
418+
RUN /tmp/dotnet-install.sh -c ${DOTNET_VERSION}
418419
ENV PATH "$PATH:/opt/buildhome/.dotnet/tools"
419420
ENV PATH "$PATH:/opt/buildhome/.dotnet"
420421
ENV DOTNET_ROOT "/opt/buildhome/.dotnet"

tests/dotnet/base.bats

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bats
2+
3+
load "../helpers.sh"
4+
5+
load '../../node_modules/bats-support/load'
6+
load '../../node_modules/bats-assert/load'
7+
8+
@test 'dotnet version 6.0 is installed and available at startup' {
9+
run dotnet --version
10+
assert_output --partial "6.0"
11+
}

0 commit comments

Comments
 (0)