switch CI/CD process over to using SDK containers

pull/178/head
Chet Husk 2022-10-31 16:48:33 -05:00
parent ed4e1510bb
commit b5ac95a4b6
3 changed files with 9 additions and 2 deletions

View File

@ -63,10 +63,13 @@ jobs:
docker build -f ./src/Services/Podcasts/Podcast.Updater.Worker/Dockerfile -t ${{ secrets.ACR_NAME }}.azurecr.io/podcastupdaterworker:${{ github.sha }} . docker build -f ./src/Services/Podcasts/Podcast.Updater.Worker/Dockerfile -t ${{ secrets.ACR_NAME }}.azurecr.io/podcastupdaterworker:${{ github.sha }} .
docker push ${{ secrets.ACR_NAME }}.azurecr.io/podcastupdaterworker:${{ github.sha }} docker push ${{ secrets.ACR_NAME }}.azurecr.io/podcastupdaterworker:${{ github.sha }}
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Build Podcast API - name: Build Podcast API
run: | run: |
docker build -f ./src/Services/Podcasts/Podcast.MinimalAPI/Dockerfile -t ${{ secrets.ACR_NAME }}.azurecr.io/podcastapi:${{ github.sha }} . dotnet publish -c Release -r linux-x64 -p ContainerImageTag=${{ github.sha }} -p ContainerRegistry=${{ secrets.ACR_NAME }}.azurecr.io -p PublishProfile=DefaultContainer src/Services/Podcasts/Podcast.MinimalAPI/Podcast.MinimalAPI.csproj
docker push ${{ secrets.ACR_NAME }}.azurecr.io/podcastapi:${{ github.sha }}
- name: Build Podcast Ingestion - name: Build Podcast Ingestion
run: | run: |

View File

@ -7,6 +7,7 @@
<UserSecretsId>dotnet-Podcast.Ingestion.Worker-3B4533BC-B8E2-4B9F-8E9F-ABAE3667C2D6</UserSecretsId> <UserSecretsId>dotnet-Podcast.Ingestion.Worker-3B4533BC-B8E2-4B9F-8E9F-ABAE3667C2D6</UserSecretsId>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<DockerfileContext>..\..\..\..</DockerfileContext> <DockerfileContext>..\..\..\..</DockerfileContext>
<SelfContained>false</SelfContained>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@ -8,6 +8,8 @@
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<DockerfileContext>..\..\..\..</DockerfileContext> <DockerfileContext>..\..\..\..</DockerfileContext>
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles> <ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
<SelfContained>false</SelfContained>
<ContainerImageName>podcastapi</ContainerImageName>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
@ -17,6 +19,7 @@
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
</PackageReference> </PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.1" /> <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.1" />
<PackageReference Include="Microsoft.NET.Build.Containers" Version="0.2.7" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.14.0" /> <PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.14.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.0-*" /> <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.0-*" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" /> <PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />