Skip to content

Commit e79a6e2

Browse files
authored
Merge pull request #160 from Mellanox/stig-tag
feat: Add '-stig-fips' suffix into the tag for related images
2 parents ade4a4c + 690f296 commit e79a6e2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,20 @@ jobs:
115115
matrix:
116116
component: ${{ fromJSON(inputs.components) }}
117117
steps:
118+
- name: Adjust image tag for STIG/FedRAMP images
119+
id: set_tag
120+
run: |
121+
IMAGE_NAME="${{ matrix.component.imageName }}"
122+
BASE_TAG="${{ env.DOCKER_TAG }}"
123+
case "$IMAGE_NAME" in
124+
*stig*)
125+
NEW_TAG="${BASE_TAG}-stig-fips"
126+
;;
127+
*)
128+
NEW_TAG="${BASE_TAG}"
129+
;;
130+
esac
131+
echo "DOCKER_TAG=$NEW_TAG" >> $GITHUB_ENV
118132
- uses: actions/checkout@v4
119133
with:
120134
ref: ${{ needs.determine_ref.outputs.github_ref_name }}

0 commit comments

Comments
 (0)