From ce824b10f191ed0244d88b14f646d2a220eee552 Mon Sep 17 00:00:00 2001 From: abs2023 Date: Thu, 26 Jun 2025 17:23:56 -0400 Subject: [PATCH] add stg branch capability --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8653b2e..543bb6c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,7 @@ on: push: branches: - main + - stg - dev - cicd/* @@ -100,7 +101,7 @@ jobs: name: Test Build Indexer Container if: ( - (github.event_name == 'pull_request' && (github.base_ref == 'main' || github.base_ref == 'dev')) || + (github.event_name == 'pull_request' && (github.base_ref == 'main' || github.base_ref == 'dev' || github.base_ref == 'stg')) || (github.event_name == 'workflow_dispatch' && (github.event.inputs.build_container == 'true')) ) runs-on: ubuntu-latest @@ -134,7 +135,7 @@ jobs: name: Build & Push Docker Image if: | ( - (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev')) || + (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/stg')) || (github.event_name == 'workflow_dispatch' && (github.event.inputs.build_container == 'true')) ) needs: @@ -196,7 +197,7 @@ jobs: name: Deploy Indexer to GitLab if: | ( - (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev')) + (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/stg')) ) needs: - Generate-Tag @@ -222,6 +223,8 @@ jobs: # Determine branch if [ "${{ github.ref_name }}" == "dev" ]; then GITLABBRANCH="dev" + elif [ "${{ github.ref_name }}" == "stg" ]; then + GITLABBRANCH="stg" elif [ "${{ github.ref_name }}" == "main" ]; then GITLABBRANCH="main" else