Skip to content

Commit 97acc6b

Browse files
Pin dependencies
1 parent f877f30 commit 97acc6b

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/build-and-push-image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ jobs:
7373
tag-prefix: "api-"
7474
aca_name_secret: "ACA_CONTAINERAPP_API_NAME"
7575
steps:
76-
- uses: DFE-Digital/deploy-azure-container-apps-action/.github/actions/build@v5.2.1
76+
- uses: DFE-Digital/deploy-azure-container-apps-action/.github/actions/build@8e72e403f05ff9da09668207eef1d79e1ce9d1a7 # v5.2.1
7777
with:
7878
image-name: ${{ needs.set-env.outputs.image-name }}
7979
build-args: CI=true
8080
build-file-name: ./Dockerfile.${{ matrix.image }}
8181
tag-prefix: ${{ matrix.tag-prefix }}
8282
github-token: ${{ secrets.GITHUB_TOKEN }}
8383

84-
- uses: DFE-Digital/deploy-azure-container-apps-action/.github/actions/import@v5.2.1
84+
- uses: DFE-Digital/deploy-azure-container-apps-action/.github/actions/import@8e72e403f05ff9da09668207eef1d79e1ce9d1a7 # v5.2.1
8585
with:
8686
image-name: ${{ needs.set-env.outputs.image-name }}
8787
tag-prefix: ${{ matrix.tag-prefix }}
@@ -98,7 +98,7 @@ jobs:
9898
- id: annotate
9999
run: echo "ANNOTATE_RELEASE=${{ matrix.image == 'web' && 'yes' || 'no' }}" >> $GITHUB_ENV
100100

101-
- uses: DFE-Digital/deploy-azure-container-apps-action/.github/actions/deploy@v5.2.1
101+
- uses: DFE-Digital/deploy-azure-container-apps-action/.github/actions/deploy@8e72e403f05ff9da09668207eef1d79e1ce9d1a7 # v5.2.1
102102
with:
103103
image-name: ${{ needs.set-env.outputs.image-name }}
104104
tag-prefix: ${{ matrix.tag-prefix }}

Dfe.ManageFreeSchoolProjects/Dfe.ManageFreeSchoolProjects.API/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
22

33
# This stage is used when running from VS in fast mode (Default for Debug configuration)
4-
FROM mcr.microsoft.com/dotnet/aspnet:8.0-azurelinux3.0 AS base
4+
FROM mcr.microsoft.com/dotnet/aspnet:8.0-azurelinux3.0@sha256:0a9ce1086b3abbb226f557740753b0c848c636407ae272f5f84d74a861e733fc AS base
55
USER $APP_UID
66
WORKDIR /app
77
EXPOSE 3001
88
EXPOSE 3000
99

1010
# This stage is used to build the service project
11-
FROM mcr.microsoft.com/dotnet/sdk:8.0-azurelinux3.0 AS build
11+
FROM mcr.microsoft.com/dotnet/sdk:8.0-azurelinux3.0@sha256:167233a94c6a4cec070fa04e04b95a9e5a0a670a9b77d31cd6d0b7f3f3eb3de7 AS build
1212
ARG BUILD_CONFIGURATION=Release
1313
WORKDIR /src
1414
COPY ["Dfe.ManageFreeSchoolProjects.API/Dfe.ManageFreeSchoolProjects.API.csproj", "Dfe.ManageFreeSchoolProjects.API/"]

Dfe.ManageFreeSchoolProjects/Dfe.ManageFreeSchoolProjects.Data/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
# See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
33

44
# This stage is used when running from VS in fast mode (Default for Debug configuration)
5-
FROM mcr.microsoft.com/dotnet/runtime:8.0 AS base
5+
FROM mcr.microsoft.com/dotnet/runtime:8.0@sha256:40e24d28590d355e21a9923a9304a38da1a255d32edf7a5b3d54ec43b3e20637 AS base
66
USER $APP_UID
77
WORKDIR /app
88

99
# This stage is used to build the service project
10-
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
10+
FROM mcr.microsoft.com/dotnet/sdk:8.0@sha256:a87db299d259cec53210df406cd5e51f900a0c6d938fe56d5f392629c0505d75 AS build
1111
ARG BUILD_CONFIGURATION=Release
1212
WORKDIR /src
1313

Dfe.ManageFreeSchoolProjects/Dfe.ManageFreeSchoolProjects/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
22

33
# This stage is used when running from VS in fast mode (Default for Debug configuration)
4-
FROM mcr.microsoft.com/dotnet/aspnet:8.0-azurelinux3.0 AS base
4+
FROM mcr.microsoft.com/dotnet/aspnet:8.0-azurelinux3.0@sha256:0a9ce1086b3abbb226f557740753b0c848c636407ae272f5f84d74a861e733fc AS base
55

66
USER $APP_UID
77
WORKDIR /app
88
EXPOSE 5001
99
EXPOSE 5000
1010

1111
# This stage is used to build the service project
12-
FROM mcr.microsoft.com/dotnet/sdk:8.0-azurelinux3.0 AS build
12+
FROM mcr.microsoft.com/dotnet/sdk:8.0-azurelinux3.0@sha256:167233a94c6a4cec070fa04e04b95a9e5a0a670a9b77d31cd6d0b7f3f3eb3de7 AS build
1313
ARG BUILD_CONFIGURATION=Release
1414
WORKDIR /src
1515
COPY ["Dfe.ManageFreeSchoolProjects/Dfe.ManageFreeSchoolProjects.csproj", "Dfe.ManageFreeSchoolProjects/"]

Stack/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
mfspsqldb:
3-
image: mcr.microsoft.com/azure-sql-edge:latest
3+
image: mcr.microsoft.com/azure-sql-edge:latest@sha256:902628a8be89e35dfb7895ca31d602974c7bafde4d583a0d0873844feb1c42cf
44
environment:
55
ACCEPT_EULA: Y
66
MSSQL_SA_PASSWORD: mySuperStrong_pa55word!!!
@@ -15,7 +15,7 @@ services:
1515
restart: always
1616

1717
mfspsqldb.configurator:
18-
image: mcr.microsoft.com/mssql/server:2022-latest
18+
image: mcr.microsoft.com/mssql/server:2022-latest@sha256:db9a8fe3098b7e8bbde41106bdc7caee942e97124e5fdb71b872ca208de3092d
1919
volumes:
2020
- ./init:/initdb.d
2121
networks:

0 commit comments

Comments
 (0)