Skip to content

Commit aa7debe

Browse files
authored
Merge pull request #4 from ubyssey/1-run-ubysseyca-and-thothubysseyca-as-isolated-apps-on-docker-swarm-vm
1 run ubysseyca and thothubysseyca as isolated apps on docker swarm vm
2 parents a0dcd66 + 6b9ed4d commit aa7debe

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/deploy-production.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,19 @@ jobs:
127127
# Backend tag
128128
if [ "${{ github.event.inputs.skip_backend_build }}" == "true" ]; then
129129
BACKEND_TAG="${{ github.event.inputs.backend_version }}"
130+
if [ -z "$BACKEND_TAG" ]; then
131+
BACKEND_TAG="latest"
132+
fi
130133
else
131134
BACKEND_TAG="${{ github.ref_name }}"
132135
fi
133136
134137
# Frontend tag from input or default to latest
135138
FRONTEND_TAG="${{ github.event.inputs.frontend_version }}"
136-
139+
if [ -z "$FRONTEND_TAG" ]; then
140+
FRONTEND_TAG="latest"
141+
fi
142+
137143
echo "Validating backend image: ghcr.io/ubyssey/thoth:$BACKEND_TAG"
138144
if docker manifest inspect ghcr.io/ubyssey/thoth:$BACKEND_TAG >/dev/null 2>&1; then
139145
echo "✅ Backend tag $BACKEND_TAG exists"

0 commit comments

Comments
 (0)