@@ -43,24 +43,31 @@ jobs:
4343 - name : Build with dotnet
4444 run : dotnet build -p:ContinuousIntegrationBuild=True -p:ReleaseDateAttribute=True --configuration Release --no-restore
4545
46+ - name : Expose GitHub Actions Runtime
47+ uses : actions/github-script@v8
48+ with :
49+ script : |
50+ core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env['ACTIONS_RUNTIME_TOKEN']);
51+ core.exportVariable('ACTIONS_RESULTS_URL', process.env['ACTIONS_RESULTS_URL']);
52+
4653 - name : Run .NET Tests
4754 run : dotnet test --no-build --configuration Release
4855
4956 - name : Set up Docker Buildx
50- uses : docker/setup-buildx-action@v3
57+ uses : docker/setup-buildx-action@v4
5158
5259# Build but no push with a PR
5360 - name : Docker build (no push)
5461 if : github.event_name == 'pull_request' || github.event_name == 'merge_group'
55- uses : docker/build-push-action@v6
62+ uses : docker/build-push-action@v7
5663 with :
5764 push : false
5865 tags : temp-pr-validation
5966 file : ./EssentialCSharp.Web/Dockerfile
6067
6168 - name : Build Container Image
6269 if : github.event_name != 'pull_request_target' && github.event_name != 'pull_request'
63- uses : docker/build-push-action@v6
70+ uses : docker/build-push-action@v7
6471 with :
6572 tags : ${{ vars.DEVCONTAINER_REGISTRY }}/essentialcsharpweb:${{ github.sha }},${{ vars.DEVCONTAINER_REGISTRY }}/essentialcsharpweb:latest,${{ vars.PRODCONTAINER_REGISTRY }}/essentialcsharpweb:${{ github.sha }},${{ vars.PRODCONTAINER_REGISTRY }}/essentialcsharpweb:latest
6673 file : ./EssentialCSharp.Web/Dockerfile
@@ -106,7 +113,7 @@ jobs:
106113 docker image ls -a
107114
108115 - name : Log in to container registry
109- uses : docker/login-action@v3
116+ uses : docker/login-action@v4
110117 with :
111118 registry : ${{ vars.DEVCONTAINER_REGISTRY }}
112119 username : ${{ secrets.ESSENTIALCSHARP_ACR_USERNAME }}
@@ -179,7 +186,7 @@ jobs:
179186 needs : [deploy-development]
180187 concurrency :
181188 group : deploy-production
182- cancel-in-progress : false
189+ cancel-in-progress : true
183190 environment :
184191 name : " Production"
185192
@@ -203,7 +210,7 @@ jobs:
203210 docker image ls -a
204211
205212 - name : Log in to container registry
206- uses : docker/login-action@v3
213+ uses : docker/login-action@v4
207214 with :
208215 registry : ${{ vars.PRODCONTAINER_REGISTRY }}
209216 username : ${{ secrets.ESSENTIALCSHARP_ACR_USERNAME }}
0 commit comments