diff --git a/.github/workflows/build_and_push_docker.yml b/.github/workflows/build_and_push_docker.yml index 18032a9..621a25c 100644 --- a/.github/workflows/build_and_push_docker.yml +++ b/.github/workflows/build_and_push_docker.yml @@ -55,7 +55,7 @@ jobs: exit 0 fi - DJ_BRANCHES=$(curl -s https://api.github.com/repos/${REPO}/branches | jq '.[].name' | rev | cut -c2- | rev | cut -c2-) + DJ_BRANCHES=$(curl -s https://api.github.com/repos/${REPO}/branches?per_page=100 | jq '.[].name' | rev | cut -c2- | rev | cut -c2-) BRANCH_TO_BUILD="" if [[ "$BRANCH_TO_BUILD" == "" ]] && echo "$DJ_BRANCHES" | grep -F -q -x "$INPUT_VERSION"; then @@ -63,11 +63,6 @@ jobs: DOCKER_TAGS+=( "$INPUT_VERSION" ) fi - if [[ "$INPUT_VERSION" == "main" ]]; then - BRANCH_TO_BUILD="main" - DOCKER_TAGS+=( "main" ) - fi - if [[ "$BRANCH_TO_BUILD" != "" ]]; then echo "DOCKER_TAGS: ${DOCKER_TAGS[*]}" echo "BRANCH_TO_BUILD: $BRANCH_TO_BUILD"