-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
e2e: Run on other architectures #799
Merged
openshift-merge-robot
merged 9 commits into
openshift:master
from
gquillar:e2e_multi-arch
Mar 14, 2022
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8aa8aa2
e2e: Run on other architectures
gquillar 8b069ca
fix test failure
gquillar dfc27a5
Merge branch 'openshift:master' into e2e_multi-arch
gquillar 4d96f27
e2e: Run on other architectures
gquillar 3b9e897
fix test failure
gquillar 892c886
Merge branch 'e2e_multi-arch' of https://github.com/gquillar/complian…
gquillar 48cd821
fix tag usage for openscap-ocp
gquillar 2fb49f6
add push of latest tag for test-broken-content image
gquillar 214fa7a
change profile bundle definition for broken_os_detection image
gquillar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
COPY tests/data/ocp4-unexistent-resource.xml . | ||
ARG xml_path | ||
COPY $xml_path/* . |
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,39 @@ | ||
#!/usr/bin/env bash | ||
|
||
BUILD_PATH=images/testcontent | ||
DOCKERFILE=${BUILD_PATH}/broken-content.Dockerfile | ||
|
||
declare -a tags=( | ||
'unexistent_resource' | ||
'proff_diff_baseline' | ||
'proff_diff_mod' | ||
'rem_mod_base' | ||
'rem_mod_change' | ||
'broken_os_detection' | ||
'from' | ||
'to' | ||
'kubeletconfig' | ||
'variabletemplate' | ||
) | ||
|
||
CMD=$1 | ||
IMAGE_NAME=$2 | ||
|
||
if [[ "$CMD" != "build" ]] && [[ "$CMD" != "push" ]]; then | ||
echo "Invalid command '$CMD', it should be 'build' or 'push'" | ||
exit 1 | ||
fi | ||
|
||
for tag in "${tags[@]}" | ||
do | ||
if [[ "$CMD" == "build" ]]; then | ||
${RUNTIME} build -t ${IMAGE_NAME}:${tag} \ | ||
--build-arg xml_path=${BUILD_PATH}/${tag} \ | ||
-f ${DOCKERFILE} . | ||
else | ||
${RUNTIME} push ${IMAGE_NAME}:${tag} | ||
fi | ||
done | ||
if [[ "$CMD" == "push" ]]; then | ||
${RUNTIME} push ${IMAGE_NAME}:unexistent_resource ${IMAGE_NAME}:latest | ||
fi |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I see correctly that this variable definition is twice in the Makefile?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the same variable: one for operator and one for openscap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oups I see, DEFAULT_IMAGE_OPENSCAP_PATH declaration at line 2 was an extra paste. Need to be removed