1010
1111jobs :
1212 get_config_values :
13- runs-on : ubuntu-22.04
14- outputs :
15- tag_format : ${{ steps.load-config.outputs.TAG_FORMAT }}
16- devcontainer_version : ${{ steps.load-config.outputs.DEVCONTAINER_VERSION }}
17- devcontainer_image : ${{ steps.load-config.outputs.DEVCONTAINER_IMAGE }}
18- steps :
19- - name : Checkout code
20- uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
21-
22- - name : Load config value
23- id : load-config
24- run : |
25- TAG_FORMAT=$(yq '.TAG_FORMAT' .github/config/settings.yml)
26- DEVCONTAINER_IMAGE=$(jq -r '.build.args.IMAGE_NAME' .devcontainer/devcontainer.json)
27- DEVCONTAINER_VERSION=$(jq -r '.build.args.IMAGE_VERSION' .devcontainer/devcontainer.json)
28- {
29- echo "TAG_FORMAT=$TAG_FORMAT"
30- echo "DEVCONTAINER_IMAGE=$DEVCONTAINER_IMAGE"
31- echo "DEVCONTAINER_VERSION=$DEVCONTAINER_VERSION"
32- } >> "$GITHUB_OUTPUT"
13+ uses : NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@8404cf6e3a61ac8de4d1644e175e288aa4965815
14+ with :
15+ verify_published_from_main_image : true
3316 get_commit_id :
3417 runs-on : ubuntu-22.04
3518 outputs :
@@ -49,25 +32,24 @@ jobs:
4932 echo "commit_id=${{ github.sha }}" >> "$GITHUB_OUTPUT"
5033 echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
5134 quality_checks :
52- uses : NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@36677e1d6bfaa010d7b78942a1ade12fbefecb80
35+ uses : NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@8404cf6e3a61ac8de4d1644e175e288aa4965815
5336 needs : [get_config_values, get_commit_id]
5437 with :
55- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }} "
38+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
5639 run_docker_scan : true
5740 docker_images : " eps-cdk-utils"
5841 secrets :
5942 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
6043
6144 tag_release :
6245 needs : [quality_checks, get_commit_id, get_config_values]
63- uses : NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@36677e1d6bfaa010d7b78942a1ade12fbefecb80
46+ uses : NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@8404cf6e3a61ac8de4d1644e175e288aa4965815
6447 with :
6548 dry_run : false
66- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }} "
49+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
6750 branch_name : main
6851 publish_packages : packages/cdkConstructs,packages/deploymentUtils
6952 tag_format : ${{ needs.get_config_values.outputs.tag_format }}
70- verify_published_from_main_image : true
7153 secrets : inherit
7254
7355 package_code :
@@ -76,15 +58,13 @@ jobs:
7658 with :
7759 VERSION_NUMBER : ${{needs.tag_release.outputs.version_tag}}
7860 COMMIT_ID : ${{ needs.get_commit_id.outputs.commit_id }}
79- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }}"
80- verify_published_from_main_image : true
61+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
8162
8263 release_dev :
8364 needs : [tag_release, package_code, get_commit_id, get_config_values]
8465 uses : ./.github/workflows/docker_image_upload.yml
8566 with :
86- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }}"
87- verify_published_from_main_image : true
67+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
8868 AWS_ENVIRONMENT : dev
8969 VERSION_NUMBER : ${{needs.tag_release.outputs.version_tag}}
9070 COMMIT_ID : ${{ needs.get_commit_id.outputs.commit_id }}
9878 [tag_release, release_dev, package_code, get_commit_id, get_config_values]
9979 uses : ./.github/workflows/docker_image_upload.yml
10080 with :
101- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }}"
102- verify_published_from_main_image : true
81+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
10382 AWS_ENVIRONMENT : qa
10483 VERSION_NUMBER : ${{needs.tag_release.outputs.version_tag}}
10584 COMMIT_ID : ${{ needs.get_commit_id.outputs.commit_id }}
11392 [tag_release, release_dev, package_code, get_commit_id, get_config_values]
11493 uses : ./.github/workflows/docker_image_upload.yml
11594 with :
116- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }}"
117- verify_published_from_main_image : true
95+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
11896 AWS_ENVIRONMENT : ref
11997 VERSION_NUMBER : ${{needs.tag_release.outputs.version_tag}}
12098 COMMIT_ID : ${{ needs.get_commit_id.outputs.commit_id }}
@@ -128,8 +106,7 @@ jobs:
128106 [tag_release, release_qa, package_code, get_commit_id, get_config_values]
129107 uses : ./.github/workflows/docker_image_upload.yml
130108 with :
131- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }}"
132- verify_published_from_main_image : true
109+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
133110 AWS_ENVIRONMENT : int
134111 VERSION_NUMBER : ${{needs.tag_release.outputs.version_tag}}
135112 COMMIT_ID : ${{ needs.get_commit_id.outputs.commit_id }}
@@ -143,8 +120,7 @@ jobs:
143120 [tag_release, release_int, package_code, get_commit_id, get_config_values]
144121 uses : ./.github/workflows/docker_image_upload.yml
145122 with :
146- runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }}"
147- verify_published_from_main_image : true
123+ pinned_image : ${{ needs.get_config_values.outputs.pinned_image }}
148124 AWS_ENVIRONMENT : prod
149125 VERSION_NUMBER : ${{needs.tag_release.outputs.version_tag}}
150126 COMMIT_ID : ${{ needs.get_commit_id.outputs.commit_id }}
0 commit comments