Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
push:
branches:
- main
- stg
- dev
- cicd/*

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading