-
Notifications
You must be signed in to change notification settings - Fork 1.2k
apply service bot changes #537
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
Conversation
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.
Pull Request Overview
This PR applies changes to support skipping community builds and promotions for docker images based on community settings.
- Introduces new community-related configuration keys and flags in service.yml
- Adds environment variables and conditional logic in Semaphore configuration files to skip community docker image operations
- Updates build and promotion pipelines to include the DOCKER_IMAGE variable for community filtering
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
service.yml | Added community_docker_repos, community_maven_modules, and SKIP_COMMUNITY parameters for build and publish steps |
.semaphore/semaphore.yml | Included COMMUNITY_DOCKER_REPOS and conditional logic to skip community images in build jobs |
.semaphore/cp_dockerfile_promote.yml | Added community filtering logic and env variable DOCKER_IMAGE for promotions |
.semaphore/cp_dockerfile_build.yml | Updated build pipeline with community skipping logic and DOCKER_IMAGE env variable |
if [ "$skip_repo" = "$DOCKER_IMAGE" ]; then | ||
echo "Skipping build for $DOCKER_IMAGE as it is in COMMUNITY_DOCKER_REPOS list" | ||
export SEMAPHORE_JOB_RESULT=passed | ||
return 130 |
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.
Using 'return' outside of a function may cause errors in a shell script. Consider using 'exit 130' if this script block is not within a function.
return 130 | |
exit 130 |
Copilot uses AI. Check for mistakes.
if [ "$skip_repo" = "$DOCKER_IMAGE" ]; then | ||
echo "Skipping promotion for $DOCKER_IMAGE as it is in COMMUNITY_DOCKER_REPOS list" | ||
export SEMAPHORE_JOB_RESULT=passed | ||
return 130 |
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.
Using 'return' outside of a function may not work as expected. Use 'exit 130' if this command is not part of a function.
return 130 | |
exit 130 |
Copilot uses AI. Check for mistakes.
if [ "$skip_repo" = "$DOCKER_IMAGE" ]; then | ||
echo "Skipping build for $DOCKER_IMAGE as it is in COMMUNITY_DOCKER_REPOS list" | ||
export SEMAPHORE_JOB_RESULT=passed | ||
return 130 |
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.
Using 'return' may be problematic if not within a function context. Replace it with 'exit 130' to ensure the script terminates correctly.
return 130 | |
exit 130 |
Copilot uses AI. Check for mistakes.
No description provided.