From b5ac95a4b6ade17e15500dd4c14061ccc13f4c97 Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Mon, 31 Oct 2022 16:48:33 -0500 Subject: [PATCH] switch CI/CD process over to using SDK containers --- .github/workflows/podcast-api.yml | 7 +++++-- .../Podcast.Ingestion.Worker.csproj | 1 + .../Podcasts/Podcast.MinimalAPI/Podcast.MinimalAPI.csproj | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/podcast-api.yml b/.github/workflows/podcast-api.yml index 32a0360..9c553e1 100644 --- a/.github/workflows/podcast-api.yml +++ b/.github/workflows/podcast-api.yml @@ -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 push ${{ secrets.ACR_NAME }}.azurecr.io/podcastupdaterworker:${{ github.sha }} + - uses: actions/setup-dotnet@v3 + with: + dotnet-version: '7.0.x' + - name: Build Podcast API run: | - docker build -f ./src/Services/Podcasts/Podcast.MinimalAPI/Dockerfile -t ${{ secrets.ACR_NAME }}.azurecr.io/podcastapi:${{ github.sha }} . - docker push ${{ 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 - name: Build Podcast Ingestion run: | diff --git a/src/Services/Podcasts/Podcast.Ingestion.Worker/Podcast.Ingestion.Worker.csproj b/src/Services/Podcasts/Podcast.Ingestion.Worker/Podcast.Ingestion.Worker.csproj index c38a419..c1de1d0 100644 --- a/src/Services/Podcasts/Podcast.Ingestion.Worker/Podcast.Ingestion.Worker.csproj +++ b/src/Services/Podcasts/Podcast.Ingestion.Worker/Podcast.Ingestion.Worker.csproj @@ -7,6 +7,7 @@ dotnet-Podcast.Ingestion.Worker-3B4533BC-B8E2-4B9F-8E9F-ABAE3667C2D6 Linux ..\..\..\.. + false diff --git a/src/Services/Podcasts/Podcast.MinimalAPI/Podcast.MinimalAPI.csproj b/src/Services/Podcasts/Podcast.MinimalAPI/Podcast.MinimalAPI.csproj index 5fface8..0f504c8 100644 --- a/src/Services/Podcasts/Podcast.MinimalAPI/Podcast.MinimalAPI.csproj +++ b/src/Services/Podcasts/Podcast.MinimalAPI/Podcast.MinimalAPI.csproj @@ -8,6 +8,8 @@ enable ..\..\..\.. false + false + podcastapi @@ -17,6 +19,7 @@ all +