Skip to content

Commit

Permalink
ci: build per env
Browse files Browse the repository at this point in the history
  • Loading branch information
Alxandr committed Nov 11, 2024
1 parent ed87982 commit bf36985
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/build-deploy-at.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Build function app
shell: bash
working-directory: ./src/Functions/Altinn.Auth.AuditLog.Functions
run: dotnet build --configuration Release --output ./output --runtime win
run: dotnet build --configuration Release --output ./output --runtime win-x64

- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -75,11 +75,21 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Download built function-app
uses: actions/download-artifact@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
name: function-app
path: ./artifacts/function-app
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Build function app
shell: bash
working-directory: ./src/Functions/Altinn.Auth.AuditLog.Functions
run: dotnet build --configuration Release --output ./output --runtime win-x64

# - name: Download built function-app
# uses: actions/download-artifact@v4
# with:
# name: function-app
# path: ./artifacts/function-app

- name: Azure Login
uses: azure/login@v2
Expand All @@ -95,4 +105,4 @@ jobs:
resource-group: ${{ vars.CONTAINER_APP_RESOURCE_GROUP_NAME }}
container-app: ${{ vars.CONTAINER_APP_NAME }}
function-app: ${{ vars.AZURE_FUNCTIONAPP_NAME }}
function-app-path: ./artifacts/function-app
function-app-path: ./src/Functions/Altinn.Auth.AuditLog.Functions/output/

0 comments on commit bf36985

Please sign in to comment.