Skip to content

Commit e789e28

Browse files
committed
fix: do not build arm64 images for STIG
Signed-off-by: Alexander Maslennikov <[email protected]>
1 parent f2977b1 commit e789e28

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/fork-ci-reusable.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)