Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update CI/CD to work with .Net 6 #728

Merged
merged 1 commit into from
Jul 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
VadymLevkovskyi marked this conversation as resolved.
Show resolved Hide resolved
# - --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