88
99jobs :
1010 get_config_values :
11- runs-on : ubuntu-22.04
12- outputs :
13- tag_format : ${{ steps.load-config.outputs.TAG_FORMAT }}
14- devcontainer_version : ${{ steps.load-config.outputs.DEVCONTAINER_VERSION }}
15- devcontainer_image : ${{ steps.load-config.outputs.DEVCONTAINER_IMAGE }}
16- steps :
17- - name : Checkout code
18- uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
19-
20- - name : Load config value
21- id : load-config
22- run : |
23- TAG_FORMAT=$(yq '.TAG_FORMAT' .github/config/settings.yml)
24- DEVCONTAINER_IMAGE=$(jq -r '.build.args.IMAGE_NAME' .devcontainer/devcontainer.json)
25- DEVCONTAINER_VERSION=$(jq -r '.build.args.IMAGE_VERSION' .devcontainer/devcontainer.json)
26- {
27- echo "TAG_FORMAT=$TAG_FORMAT"
28- echo "DEVCONTAINER_IMAGE=$DEVCONTAINER_IMAGE"
29- echo "DEVCONTAINER_VERSION=$DEVCONTAINER_VERSION"
30- } >> "$GITHUB_OUTPUT"
31-
11+ uses : NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@dac60c1e29babc62013e7bb9ade002cb381c4c49
12+ with :
13+ verify_published_from_main_image : true
3214 quality_checks :
33- uses : NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@36677e1d6bfaa010d7b78942a1ade12fbefecb80
15+ uses : NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@dac60c1e29babc62013e7bb9ade002cb381c4c49
3416 needs : [get_config_values]
3517 with :
36- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }} "
18+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
3719 secrets :
3820 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
3921
@@ -49,28 +31,25 @@ jobs:
4931
5032 tag_release :
5133 needs : [quality_checks, get_commit_id, get_config_values]
52- uses : NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@36677e1d6bfaa010d7b78942a1ade12fbefecb80
34+ uses : NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@dac60c1e29babc62013e7bb9ade002cb381c4c49
5335 with :
5436 dry_run : false
55- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }} "
37+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
5638 branch_name : main
5739 tag_format : ${{ needs.get_config_values.outputs.tag_format }}
58- verify_published_from_main_image : true
5940 secrets : inherit
6041
6142 package_code :
6243 needs : [tag_release, get_config_values]
6344 uses : ./.github/workflows/run_package_code_and_api.yml
6445 with :
65- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }}"
66- verify_published_from_main_image : true
46+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
6747
6848 release_dev :
6949 needs : [tag_release, package_code, get_commit_id, get_config_values]
7050 uses : ./.github/workflows/run_release_code_and_api.yml
7151 with :
72- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }}"
73- verify_published_from_main_image : true
52+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
7453 ARTIFACT_BUCKET_PREFIX : ${{needs.tag_release.outputs.version_tag}}
7554 STACK_NAME : psu
7655 AWS_ENVIRONMENT : dev
12099 needs : [tag_release, package_code, get_commit_id, get_config_values]
121100 uses : ./.github/workflows/run_release_code_and_api.yml
122101 with :
123- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }}"
124- verify_published_from_main_image : true
102+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
125103 ARTIFACT_BUCKET_PREFIX : ${{needs.tag_release.outputs.version_tag}}-sandbox
126104 STACK_NAME : psu-sandbox
127105 AWS_ENVIRONMENT : dev
@@ -170,8 +148,7 @@ jobs:
170148 ]
171149 uses : ./.github/workflows/run_release_code_and_api.yml
172150 with :
173- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }}"
174- verify_published_from_main_image : true
151+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
175152 ARTIFACT_BUCKET_PREFIX : ${{needs.tag_release.outputs.version_tag}}
176153 STACK_NAME : psu
177154 AWS_ENVIRONMENT : ref
@@ -222,8 +199,7 @@ jobs:
222199 ]
223200 uses : ./.github/workflows/run_release_code_and_api.yml
224201 with :
225- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }}"
226- verify_published_from_main_image : true
202+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
227203 ARTIFACT_BUCKET_PREFIX : ${{needs.tag_release.outputs.version_tag}}
228204 STACK_NAME : psu
229205 AWS_ENVIRONMENT : qa
@@ -266,8 +242,7 @@ jobs:
266242 needs : [tag_release, release_qa, package_code, get_commit_id, get_config_values]
267243 uses : ./.github/workflows/run_release_code_and_api.yml
268244 with :
269- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }}"
270- verify_published_from_main_image : true
245+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
271246 ARTIFACT_BUCKET_PREFIX : ${{needs.tag_release.outputs.version_tag}}
272247 STACK_NAME : psu
273248 AWS_ENVIRONMENT : int
@@ -316,8 +291,7 @@ jobs:
316291 needs : [tag_release, release_qa, package_code, get_commit_id, get_config_values]
317292 uses : ./.github/workflows/run_release_code_and_api.yml
318293 with :
319- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }}"
320- verify_published_from_main_image : true
294+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
321295 ARTIFACT_BUCKET_PREFIX : ${{needs.tag_release.outputs.version_tag}}-sandbox
322296 STACK_NAME : psu-sandbox
323297 AWS_ENVIRONMENT : int
@@ -366,8 +340,7 @@ jobs:
366340 ]
367341 uses : ./.github/workflows/run_release_code_and_api.yml
368342 with :
369- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }}"
370- verify_published_from_main_image : true
343+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
371344 ARTIFACT_BUCKET_PREFIX : ${{needs.tag_release.outputs.version_tag}}
372345 STACK_NAME : psu
373346 AWS_ENVIRONMENT : prod
0 commit comments