mirror of https://github.com/buster-so/buster.git
fix deploy.yml
This commit is contained in:
parent
cf8610eda4
commit
4183c9d66f
|
@ -34,7 +34,11 @@ jobs:
|
||||||
SHA="${{ steps.commit.outputs.sha_short }}"
|
SHA="${{ steps.commit.outputs.sha_short }}"
|
||||||
|
|
||||||
echo "🚀 Deploying to ${BRANCH} environment..."
|
echo "🚀 Deploying to ${BRANCH} environment..."
|
||||||
echo "📦 Using image tag: ${BRANCH == 'main' && SHA || 'staging-'$SHA}"
|
if [[ "$BRANCH" == "main" ]]; then
|
||||||
|
echo "📦 Using image tag: ${SHA}"
|
||||||
|
else
|
||||||
|
echo "📦 Using image tag: staging-${SHA}"
|
||||||
|
fi
|
||||||
|
|
||||||
# Update the Porter app with the new image tag
|
# Update the Porter app with the new image tag
|
||||||
if [[ "$BRANCH" == "main" ]]; then
|
if [[ "$BRANCH" == "main" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue