Skip to content

Commit

Permalink
update CI/CD to work with .Net 6 (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmyMi authored Jul 5, 2022
1 parent 04acfaa commit 49fc366
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.402
dotnet-version: 6.0.102

- name: Clean
run: dotnet clean ./OutOfSchool/OutOfSchool.sln --configuration Release && dotnet nuget locals all --clear
Expand All @@ -77,4 +77,4 @@ jobs:
run: dotnet build --configuration Release --no-restore ./OutOfSchool

- name: Test
run: dotnet test --no-restore --no-build --configuration Release ./OutOfSchool
run: dotnet test --no-restore --no-build --configuration Release ./OutOfSchool
6 changes: 3 additions & 3 deletions cloudbuild-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ steps:
- build
- gcr.io/$PROJECT_ID/oos-api:$SHORT_SHA
- --cache-image=gcr.io/$PROJECT_ID/oos-api:cache
- --builder=paketobuildpacks/builder:full
# - --builder=paketobuildpacks/builder:full
- --builder=paketobuildpacks/builder:0.2.0-full
- --buildpack=fagiani/apt
# TODO: after paketo-buildpacks/dotnet-core buildpack fix revert to using latest version
# - --buildpack=gcr.io/paketo-buildpacks/dotnet-core
- --buildpack=docker:///gcr.io/paketo-buildpacks/dotnet-core:0.16.1
- --buildpack=docker:///gcr.io/paketo-buildpacks/dotnet-core:0.11.3
- --env=BP_DOTNET_PROJECT_PATH=./OutOfSchool/OutOfSchool.WebApi/
- --publish
# Deploy container image to Cloud Run
Expand Down
6 changes: 3 additions & 3 deletions cloudbuild-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ steps:
- build
- gcr.io/$PROJECT_ID/oos-auth:$SHORT_SHA
- --cache-image=gcr.io/$PROJECT_ID/oos-auth:cache
# TODO: after paketo-buildpacks/dotnet-core buildpack fix revert to using latest version
# - --buildpack=gcr.io/paketo-buildpacks/dotnet-core
- --buildpack=docker:///gcr.io/paketo-buildpacks/dotnet-core:0.16.1
- --builder=paketobuildpacks/builder:base
- --buildpack=docker:///gcr.io/paketo-buildpacks/dotnet-core:0.11.3
# - --builder=paketobuildpacks/builder:base
- --builder=paketobuildpacks/builder:0.2.0-base
- --env=BP_DOTNET_PROJECT_PATH=./OutOfSchool/OutOfSchool.IdentityServer/
- --publish
# Deploy container image to Cloud Run
Expand Down

0 comments on commit 49fc366

Please sign in to comment.