mirror of https://github.com/buster-so/buster.git
Merge remote-tracking branch 'origin/staging' into add-static-dataframe-caching
This commit is contained in:
commit
649767b17e
|
@ -8,7 +8,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' && (github.event.workflow_run.head_branch == 'main' || github.event.workflow_run.head_branch == 'staging') }}
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
runs-on: blacksmith-2vcpu-ubuntu-2404
|
runs-on: blacksmith-2vcpu-ubuntu-2404
|
||||||
environment: ${{ github.event.workflow_run.head_branch }}
|
environment: ${{ github.event.workflow_run.head_branch }}
|
||||||
|
|
||||||
|
@ -32,7 +32,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
BRANCH="${{ github.event.workflow_run.head_branch }}"
|
BRANCH="${{ github.event.workflow_run.head_branch }}"
|
||||||
SHA="${{ steps.commit.outputs.sha_short }}"
|
SHA="${{ steps.commit.outputs.sha_short }}"
|
||||||
TAG="${BRANCH}-${SHA}"
|
|
||||||
|
# Determine the image tag based on branch
|
||||||
|
if [[ "${BRANCH}" == "main" ]]; then
|
||||||
|
TAG="${SHA}"
|
||||||
|
else
|
||||||
|
TAG="${BRANCH}-${SHA}"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "🚀 Deploying to ${BRANCH} environment..."
|
echo "🚀 Deploying to ${BRANCH} environment..."
|
||||||
echo "📦 Using image tag: ${TAG}"
|
echo "📦 Using image tag: ${TAG}"
|
||||||
|
|
Loading…
Reference in New Issue