Skip to content

Commit

Permalink
hardcode default branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-el-sayed committed Oct 8, 2024
1 parent c65ddc2 commit fa6abf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/manage_docker_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ function manage_docker_image() {
local full_docker_image_name="${server_address}/${project_path}/${docker_image_name}:${docker_image_tag}"

#local parent_branch=$(get_parent_branch_name "${repo_path}")
local parent_branch=$(get_default_branch_name "${repo_path}")
# local parent_branch=$(get_default_branch_name "${repo_path}")
local parent_branch="main"
echo "Parent branch: ${parent_branch}"
if has_git_diffs "${repo_path}" "${parent_branch}" files_to_check[@]; then
echo "Image will be built and pushed"
Expand Down

0 comments on commit fa6abf8

Please sign in to comment.