2020 org : NHSDigital
2121 repository : nhs-notify-devcontainers
2222 vendor : NHS England
23+ node_version : 24
24+ temp_dockerfile : /tmp/Dockerfile.source
2325
2426 # There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
2527jobs :
@@ -32,12 +34,10 @@ jobs:
3234 include :
3335 - container_name : base
3436 image : nhsdigital/nhs-notify-devcontainer-base
35- version : latest
3637 title : NHS Notifiy Devcontainer Base Image
3738 description : Base development container for NHS Notify projects
3839 - container_name : loaded
3940 image : nhsdigital/nhs-notify-devcontainer-loaded
40- version : latest
4141 title : NHS Notifiy Devcontainer Loaded Image
4242 description : Loaded development container for NHS Notify projects
4343
6262
6363 - uses : actions/setup-node@v6
6464 with :
65- node-version : 24
65+ node-version : ${{ env.node_version }}
6666
6767 - name : Build
6868 working-directory : ${{env.base_dir}}/${{ matrix.container_name }}
@@ -96,14 +96,14 @@ jobs:
9696
9797 # So we don't rebuild the container image, we create a simple Dockerfile that uses the previously built image as its source.
9898 - name : create temp dockerfile source
99- run : echo 'FROM ${{ env.registry }}/${{ matrix.image }}' > /tmp/Dockerfile.source
99+ run : echo 'FROM ${{ env.registry }}/${{ matrix.image }}' > ${{ env.temp_dockerfile }}
100100
101101 - name : Build and push Docker image
102102 id : push
103103 uses : docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
104104 with :
105105 context : .
106- file : /tmp/Dockerfile.source
106+ file : ${{ env.temp_dockerfile }}
107107 push : true
108108 tags : ${{ steps.meta.outputs.tags }}
109109 labels : ${{ steps.meta.outputs.labels }}
0 commit comments