From 1ac2c6343993a39c5e030539c86f95e17896ac88 Mon Sep 17 00:00:00 2001 From: Maarten Weyns Date: Fri, 15 Nov 2024 11:21:24 +0100 Subject: [PATCH] Add support for building main --- .github/workflows/build_and_push_docker.yml | 5 +++++ 1 file changed, 5 insertions(+) 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"