Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
suraciii committed Nov 30, 2023
1 parent 41fdbd2 commit 2520982
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 59 deletions.
12 changes: 0 additions & 12 deletions .config/dotnet-tools.json

This file was deleted.

11 changes: 2 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: "7.0.400"
dotnet-version: "8.0.400"
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand All @@ -29,17 +29,10 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0"
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: "7.0.400"
dotnet-version: "8.0.100"
- name: Restore dependencies
run: dotnet restore
- name: Restore tools
run: dotnet tool restore
- name: Build
run: dotnet build --configuration Release --no-restore --version-suffix="ci.${GITHUB_RUN_NUMBER}"
- name: Validate
run: Get-Item pkgs/*.nupkg |% { dotnet tool run dotnet-validate package local $_ }
shell: pwsh
27 changes: 0 additions & 27 deletions .github/workflows/deploy_check.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.400'
dotnet-version: '8.0.100'
include-prerelease: true
- name: Restore dependencies
run: dotnet restore
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,13 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0"
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: "7.0.400"
dotnet-version: "8.0.100"
- name: Restore dependencies
run: dotnet restore
- name: Restore tools
run: dotnet tool restore
- name: Build
run: dotnet build --configuration Release --no-restore /p:version="${GITHUB_REF_NAME//v/}"
- name: Validate
run: Get-Item pkgs/*.nupkg |% { dotnet tool run dotnet-validate package local $_ }
shell: pwsh
- name: NuGet Push
run: Get-Item pkgs/*.nupkg |% { dotnet nuget push $_ --source ${{ secrets.NUGET_SOURCE }} --api-key ${{ secrets.NUGET_APIKEY }} }
shell: pwsh
4 changes: 2 additions & 2 deletions src/FabronService/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0.100 AS build
FROM mcr.microsoft.com/dotnet/sdk:8.0.100 AS build
WORKDIR /source

# copy csproj and restore as distinct layers
Expand All @@ -23,7 +23,7 @@ WORKDIR /source/src/FabronService
RUN dotnet publish -c release -o /app --no-restore

# final stage/image
FROM mcr.microsoft.com/dotnet/aspnet:7.0.1
FROM mcr.microsoft.com/dotnet/aspnet:8.0.0
WORKDIR /app
ENV Logging__Console__FormatterName="ejson"
COPY --from=build /app ./
Expand Down

0 comments on commit 2520982

Please sign in to comment.