File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -116,20 +116,28 @@ jobs:
116116 matrix :
117117 component : ${{ fromJSON(inputs.components) }}
118118 steps :
119- - name : Adjust image tag for STIG/FedRAMP images
120- id : set_tag
119+ - name : Adjust image tag and build platforms for STIG/FedRAMP images
120+ id : set_tag_and_build_platforms
121121 run : |
122122 IMAGE_NAME="${{ matrix.component.imageName }}"
123- BASE_TAG="${{ env.DOCKER_TAG }}"
123+
124124 case "$IMAGE_NAME" in
125125 *stig*)
126- NEW_TAG="${BASE_TAG}-stig-fips"
127126 ;;
128127 *)
129- NEW_TAG="${BASE_TAG}"
128+ echo "Image is not STIG, nothing to change."
129+ exit 0
130130 ;;
131131 esac
132+
133+ BASE_TAG="${{ env.DOCKER_TAG }}"
134+ BUILD_PLATFORMS="${{ env.BUILD_PLATFORMS }}"
135+
136+ NEW_TAG="${BASE_TAG}-stig-fips"
137+ NEW_BUILD_PLATFORMS="linux/amd64"
138+
132139 echo "DOCKER_TAG=$NEW_TAG" >> $GITHUB_ENV
140+ echo "BUILD_PLATFORMS=$NEW_BUILD_PLATFORMS" >> $GITHUB_ENV
133141 - uses : actions/checkout@v4
134142 with :
135143 ref : ${{ needs.determine_ref.outputs.github_ref_name }}
You can’t perform that action at this time.
0 commit comments