diff --git a/.github/workflows/build_and_push_docker.yml b/.github/workflows/build_and_push_docker.yml index c18cb334..ee182f95 100644 --- a/.github/workflows/build_and_push_docker.yml +++ b/.github/workflows/build_and_push_docker.yml @@ -63,6 +63,11 @@ jobs: DOCKER_TAGS+=( "$INPUT_VERSION" ) fi + if [[ "$BRANCH_TO_BUILD" == "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"