|
10 | 10 | - cron: '0 0 * * *' |
11 | 11 | # Allows to run this workflow manually from the Actions tab for testing |
12 | 12 | workflow_dispatch: |
13 | | - |
| 13 | + |
14 | 14 |
|
15 | 15 |
|
16 | 16 | jobs: |
|
23 | 23 | NET_9_ARM64_Dockerfile: "LambdaRuntimeDockerfiles/Images/net9/arm64/Dockerfile" |
24 | 24 | NET_10_AMD64_Dockerfile: "LambdaRuntimeDockerfiles/Images/net10/amd64/Dockerfile" |
25 | 25 | NET_10_ARM64_Dockerfile: "LambdaRuntimeDockerfiles/Images/net10/arm64/Dockerfile" |
| 26 | + NET_11_AMD64_Dockerfile: "LambdaRuntimeDockerfiles/Images/net11/amd64/Dockerfile" |
| 27 | + NET_11_ARM64_Dockerfile: "LambdaRuntimeDockerfiles/Images/net11/arm64/Dockerfile" |
26 | 28 |
|
27 | 29 | steps: |
28 | 30 | # Checks-out the repository under $GITHUB_WORKSPACE |
@@ -114,6 +116,34 @@ jobs: |
114 | 116 | Write-Host "Skipping .NET 10 ARM64 update - No version detected" |
115 | 117 | } |
116 | 118 |
|
| 119 | + # Update .NET 11 AMD64 Dockerfile |
| 120 | + - name: Update .NET 11 AMD64 |
| 121 | + id: update-net11-amd64 |
| 122 | + shell: pwsh |
| 123 | + env: |
| 124 | + DOCKERFILE_PATH: ${{ env.NET_11_AMD64_Dockerfile }} |
| 125 | + run: | |
| 126 | + $version = & "./LambdaRuntimeDockerfiles/get-latest-aspnet-versions.ps1" -MajorVersion "11" |
| 127 | + if (-not [string]::IsNullOrEmpty($version)) { |
| 128 | + & "./LambdaRuntimeDockerfiles/update-dockerfile.ps1" -DockerfilePath "${{ env.DOCKERFILE_PATH }}" -NextVersion $version |
| 129 | + } else { |
| 130 | + Write-Host "Skipping .NET 11 AMD64 update - No version detected" |
| 131 | + } |
| 132 | +
|
| 133 | + # Update .NET 11 ARM64 Dockerfile |
| 134 | + - name: Update .NET 11 ARM64 |
| 135 | + id: update-net11-arm64 |
| 136 | + shell: pwsh |
| 137 | + env: |
| 138 | + DOCKERFILE_PATH: ${{ env.NET_11_ARM64_Dockerfile }} |
| 139 | + run: | |
| 140 | + $version = & "./LambdaRuntimeDockerfiles/get-latest-aspnet-versions.ps1" -MajorVersion "11" |
| 141 | + if (-not [string]::IsNullOrEmpty($version)) { |
| 142 | + & "./LambdaRuntimeDockerfiles/update-dockerfile.ps1" -DockerfilePath "${{ env.DOCKERFILE_PATH }}" -NextVersion $version |
| 143 | + } else { |
| 144 | + Write-Host "Skipping .NET 11 ARM64 update - No version detected" |
| 145 | + } |
| 146 | +
|
117 | 147 | # Commit changes and create a branch |
118 | 148 | - name: Commit and Push |
119 | 149 | id: commit-push |
@@ -159,25 +189,27 @@ jobs: |
159 | 189 | destination_branch: "dev" |
160 | 190 | pr_title: 'chore: Daily ASP.NET Core version update in Dockerfiles' |
161 | 191 | pr_body: "This PR automatically updates the Dockerfiles to use the latest ASP.NET Core version. |
162 | | - |
| 192 | +
|
163 | 193 | Verify that the Dockerfiles have correct versions and matching SHA512 checksums for ASP.NET Core runtime. |
164 | | - |
| 194 | +
|
165 | 195 | All .NET versions: https://dotnet.microsoft.com/en-us/download/dotnet |
166 | | - |
| 196 | +
|
167 | 197 | *Description of changes:* |
168 | 198 | \n${{ format |
169 | | - ( |
170 | | - '{0}\n{1}\n{2}\n{3}\n{4}\n{5}', |
171 | | - join(steps.update-net8-amd64.outputs.MESSAGE, '\n'), |
172 | | - join(steps.update-net8-arm64.outputs.MESSAGE, '\n'), |
173 | | - join(steps.update-net9-amd64.outputs.MESSAGE, '\n'), |
174 | | - join(steps.update-net9-arm64.outputs.MESSAGE, '\n'), |
175 | | - join(steps.update-net10-amd64.outputs.MESSAGE, '\n'), |
176 | | - join(steps.update-net10-arm64.outputs.MESSAGE, '\n') |
177 | | - ) |
| 199 | + ( |
| 200 | + '{0}\n{1}\n{2}\n{3}\n{4}\n{5}\n{6}\n{7}', |
| 201 | + join(steps.update-net8-amd64.outputs.MESSAGE, '\n'), |
| 202 | + join(steps.update-net8-arm64.outputs.MESSAGE, '\n'), |
| 203 | + join(steps.update-net9-amd64.outputs.MESSAGE, '\n'), |
| 204 | + join(steps.update-net9-arm64.outputs.MESSAGE, '\n'), |
| 205 | + join(steps.update-net10-amd64.outputs.MESSAGE, '\n'), |
| 206 | + join(steps.update-net10-arm64.outputs.MESSAGE, '\n'), |
| 207 | + join(steps.update-net11-amd64.outputs.MESSAGE, '\n'), |
| 208 | + join(steps.update-net11-arm64.outputs.MESSAGE, '\n') |
| 209 | + ) |
178 | 210 | }}" |
179 | 211 | github_token: ${{ secrets.GITHUB_TOKEN }} |
180 | | - |
| 212 | + |
181 | 213 | # Add "Release Not Needed" label to the PR |
182 | 214 | - name: Add Release Not Needed label |
183 | 215 | if: ${{ steps.pull-request.outputs.pr_number }} |
|
0 commit comments