Skip to content

Commit

Permalink
Try get_default_branch_name instead of get_parent_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 5185be3 commit c901442
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 @@ -248,7 +248,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_parent_branch_name "${repo_path}")
local parent_branch=$(get_default_branch_name "${repo_path}")
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 c901442

Please sign in to comment.