Skip to content

Commit

Permalink
Feature/node v20 (#26)
Browse files Browse the repository at this point in the history
* Change Node version from 19 to v20 (LTS).
Also changes how it's installed.
  • Loading branch information
highbyte authored Oct 10, 2023
1 parent 1e04b16 commit 6ed698f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ LABEL "maintainer"="Highbyte"
# Version numbers of used software
ENV SONAR_SCANNER_DOTNET_TOOL_VERSION=5.13.1 \
DOTNETCORE_RUNTIME_VERSION=5.0 \
NODE_VERSION=20 \
JRE_VERSION=17

# Add Microsoft Debian apt-get feed
Expand All @@ -32,8 +33,12 @@ RUN apt-get update -y \
&& apt-get install --no-install-recommends -y aspnetcore-runtime-$DOTNETCORE_RUNTIME_VERSION

# Install NodeJS
RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash - \
&& apt-get install -y nodejs
RUN apt-get install -y ca-certificates curl gnupg \
&& mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_VERSION.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& apt-get update -y \
&& apt-get install nodejs -y

# Install Java Runtime for SonarScanner
RUN apt-get install --no-install-recommends -y openjdk-$JRE_VERSION-jre
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The current version supports .NET 7

``` yaml
- name: SonarScanner for .NET 7 with pull request decoration support
uses: highbyte/[email protected].5
uses: highbyte/[email protected].6
with:
# The key of the SonarQube project
sonarProjectKey: your_projectkey
Expand All @@ -35,7 +35,7 @@ Also includes test results.
``` yaml
- name: SonarScanner for .NET 7 with pull request decoration support
uses: highbyte/[email protected].5
uses: highbyte/[email protected].6
with:
# The key of the SonarQube project
sonarProjectKey: your_projectkey
Expand All @@ -58,7 +58,7 @@ Also includes test results.
``` yaml
- name: SonarScanner for .NET 7 with pull request decoration support
uses: highbyte/[email protected].5
uses: highbyte/[email protected].6
with:
# The key of the SonarQube project
sonarProjectKey: your_projectkey
Expand All @@ -82,7 +82,7 @@ Also includes test results.
``` yaml
- name: SonarScanner for .NET 7 with pull request decoration support
uses: highbyte/[email protected].5
uses: highbyte/[email protected].6
with:
# The key of the SonarQube project
sonarProjectKey: your_projectkey
Expand All @@ -102,7 +102,7 @@ Also includes test results.
``` yaml
- name: SonarScanner for .NET 7 with pull request decoration support
uses: highbyte/[email protected].5
uses: highbyte/[email protected].6
with:
# The key of the SonarQube project
sonarProjectKey: your_projectkey
Expand All @@ -124,7 +124,7 @@ Also includes test results.
``` yaml
- name: SonarScanner for .NET 7 with pull request decoration support
uses: highbyte/[email protected].5
uses: highbyte/[email protected].6
with:
# The key of the SonarQube project
sonarProjectKey: your_projectkey
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ inputs:

runs:
using: "docker"
image: "docker://ghcr.io/highbyte/sonarscan-dotnet:v2.2.5"
image: "docker://ghcr.io/highbyte/sonarscan-dotnet:v2.2.6"

branding:
icon: 'check-square'
Expand Down

0 comments on commit 6ed698f

Please sign in to comment.