Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
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
11 changes: 6 additions & 5 deletions .github/workflows/cicd-1-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,22 @@ jobs:
terraform_version: "${{ needs.metadata.outputs.terraform_version }}"
version: "${{ needs.metadata.outputs.version }}"
secrets: inherit
build-image-stage: # Recommended maximum execution time is 3 minutes
build-stage: # Recommended maximum execution time is 3 minutes
name: Image build stage
needs: [metadata, commit-stage, test-stage]
uses: NHSDigital/dtos-devops-templates/.github/workflows/stage-3-build-images.yaml@main
uses: NHSDigital/dtos-devops-templates/.github/workflows/stage-3-build.yaml@dev-dtoss-8958
if: needs.metadata.outputs.does_pull_request_exist == 'true' || github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened'))
with:
docker_compose_file: ./compose.yaml
excluded_containers_csv_list: azurite,azurite-setup,sql-database,database-setup
excluded_containers_csv_list: azurite,azurite-setup,sql-database,database-setup,db
environment_tag: ${{ needs.metadata.outputs.environment_tag }}
function_app_source_code_path: src
project_name: service-layer
docker_compose_file_csv_list: ./compose.yaml
changed_folders: ./Src/ServiceLayer.API
secrets: inherit
acceptance-stage: # Recommended maximum execution time is 10 minutes
name: Acceptance stage
needs: [metadata, build-image-stage]
needs: [metadata, build-stage]
uses: ./.github/workflows/stage-4-acceptance.yaml
if: needs.metadata.outputs.does_pull_request_exist == 'true' || (github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened'))
with:
Expand Down
4 changes: 2 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ services:
api:
container_name: "api"
build:
context: ./Src
dockerfile: ServiceLayer.API/Dockerfile
context: ./src/ServiceLayer.API
dockerfile: Dockerfile
platform: linux/amd64
restart: always
environment:
Expand Down
4 changes: 2 additions & 2 deletions src/ServiceLayer.API/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS installer-env
WORKDIR /src/dotnet-function-app

COPY ./ServiceLayer.API/ServiceLayer.API.csproj .
COPY ServiceLayer.API.csproj .
RUN dotnet restore

COPY ./ServiceLayer.API/ .
COPY . .

RUN dotnet publish -c Release -o /home/site/wwwroot

Expand Down
Loading