-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the Push manifest target to check digest value (#807)
* Updated the makefile to fix build issue * Added new file to test digest * Updated the digest param names * Updated the copyright version * Updated file to add args
- Loading branch information
Sravani Shibbala
authored and
GitHub Enterprise
committed
Jan 22, 2025
1 parent
ececdf6
commit ae939cc
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
# © Copyright IBM Corporation 2025 | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
RED="\033[31m" | ||
END="\033[0m" | ||
ERROR=${RED} | ||
|
||
while getopts r:n:i: flag | ||
do | ||
case "${flag}" in | ||
r) AMD64_DIGEST=${OPTARG};; | ||
n) S390X_DIGEST=${OPTARG};; | ||
i) PPC64LE_DIGEST=${OPTARG};; | ||
|
||
esac | ||
done | ||
|
||
if [[ -z "$AMD64_DIGEST" || -z "$S390X_DIGEST" || -z "$PPC64LE_DIGEST" ]]; then | ||
printf "${ERROR}Ensure all three architecture images are successfully obtained and build should be completed successfully if not restart the affected architecture builds to ensure all images are built successfully before pushing the manifest.${END}\n" | ||
exit 1 | ||
fi |