Skip to content

Commit 856f03e

Browse files
committed
Fix path to deployment_utils.py
1 parent 06468cd commit 856f03e

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

.github/workflows/deploy-production.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ jobs:
7474
echo "🚀 Starting production deployment build process..."
7575
7676
# Ensure deployment utilities are executable
77-
chmod +x scripts/deployment_utils.py
77+
chmod +x deployment_utils.py
7878
7979
# Clean git workspace and checkout master branch using deployment utilities
80-
if ! python3 scripts/deployment_utils.py \
80+
if ! python3 deployment_utils.py \
8181
--registry "${{ env.REGISTRY }}" \
8282
--image-name "${{ env.IMAGE_NAME }}" \
8383
--app-path "${{ secrets.PROD_APP_PATH || '/opt/trends-earth-api' }}" \
@@ -87,7 +87,7 @@ jobs:
8787
fi
8888
8989
# Configure Docker registry using deployment utilities
90-
if ! python3 scripts/deployment_utils.py \
90+
if ! python3 deployment_utils.py \
9191
--registry "${{ env.REGISTRY }}" \
9292
--image-name "${{ env.IMAGE_NAME }}" \
9393
--app-path "${{ secrets.PROD_APP_PATH || '/opt/trends-earth-api' }}" \
@@ -102,7 +102,7 @@ jobs:
102102
SHORT_SHA="${SHORT_SHA:0:7}"
103103
104104
# Build and push images using deployment utilities
105-
if ! python3 scripts/deployment_utils.py \
105+
if ! python3 deployment_utils.py \
106106
--registry "${{ env.REGISTRY }}" \
107107
--image-name "${{ env.IMAGE_NAME }}" \
108108
--app-path "${{ secrets.PROD_APP_PATH || '/opt/trends-earth-api' }}" \
@@ -269,7 +269,7 @@ jobs:
269269
270270
# Wait for all services to be ready using deployment utilities
271271
echo "📊 Waiting for all services to be running..."
272-
python3 scripts/deployment_utils.py \
272+
python3 deployment_utils.py \
273273
--registry "${{ secrets.DOCKER_REGISTRY }}" \
274274
--image-name "${{ env.IMAGE_NAME }}" \
275275
--app-path "${{ secrets.PROD_APP_PATH || '/opt/trends-earth-api' }}" \
@@ -281,7 +281,7 @@ jobs:
281281
282282
# Health check using deployment utilities
283283
echo "🏥 Performing health check..."
284-
if ! python3 scripts/deployment_utils.py \
284+
if ! python3 deployment_utils.py \
285285
--registry "${{ secrets.DOCKER_REGISTRY }}" \
286286
--image-name "${{ env.IMAGE_NAME }}" \
287287
--app-path "${{ secrets.PROD_APP_PATH || '/opt/trends-earth-api' }}" \

.github/workflows/deploy-staging.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ jobs:
105105
cd ${{ secrets.STAGING_APP_PATH || '/opt/trends-earth-api-staging' }}
106106
107107
# Ensure deployment utilities are executable
108-
chmod +x scripts/deployment_utils.py
108+
chmod +x deployment_utils.py
109109
110110
# Determine which branch to deploy
111111
BRANCH="${{ github.ref_name == 'staging' && 'staging' || 'develop' }}"
112-
echo " Deploying branch: $BRANCH"
112+
echo "📚 Deploying branch: $BRANCH"
113113
114114
# Clean git workspace and checkout correct branch using deployment utilities
115-
if ! python3 scripts/deployment_utils.py \
115+
if ! python3 deployment_utils.py
116116
--registry "${{ env.REGISTRY }}" \
117117
--image-name "${{ env.IMAGE_NAME }}" \
118118
--app-path "${{ secrets.STAGING_APP_PATH || '/opt/trends-earth-api-staging' }}" \
@@ -122,7 +122,7 @@ jobs:
122122
fi
123123
124124
# Configure Docker registry using deployment utilities
125-
if ! python3 scripts/deployment_utils.py \
125+
if ! python3 deployment_utils.py \
126126
--registry "${{ env.REGISTRY }}" \
127127
--image-name "${{ env.IMAGE_NAME }}" \
128128
--app-path "${{ secrets.STAGING_APP_PATH || '/opt/trends-earth-api-staging' }}" \
@@ -137,7 +137,7 @@ jobs:
137137
SHORT_SHA="${SHORT_SHA:0:7}"
138138
139139
# Build and push images using deployment utilities
140-
if ! python3 scripts/deployment_utils.py \
140+
if ! python3 deployment_utils.py \
141141
--registry "${{ env.REGISTRY }}" \
142142
--image-name "${{ env.IMAGE_NAME }}" \
143143
--app-path "${{ secrets.STAGING_APP_PATH || '/opt/trends-earth-api-staging' }}" \
@@ -359,7 +359,7 @@ jobs:
359359
360360
# Wait for all services to be ready using deployment utilities
361361
echo "📊 Waiting for all services to be running..."
362-
if ! python3 scripts/deployment_utils.py \
362+
if ! python3 deployment_utils.py \
363363
--registry "${{ secrets.DOCKER_REGISTRY }}" \
364364
--image-name "${{ env.IMAGE_NAME }}" \
365365
--app-path "${{ secrets.STAGING_APP_PATH || '/opt/trends-earth-api-staging' }}" \
@@ -373,7 +373,7 @@ jobs:
373373
374374
# Health check using deployment utilities
375375
echo "🏥 Performing health check..."
376-
if ! python3 scripts/deployment_utils.py \
376+
if ! python3 deployment_utils.py \
377377
--registry "${{ secrets.DOCKER_REGISTRY }}" \
378378
--image-name "${{ env.IMAGE_NAME }}" \
379379
--app-path "${{ secrets.STAGING_APP_PATH || '/opt/trends-earth-api-staging' }}" \

.github/workflows/rollback-production.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ jobs:
193193
194194
# Clean workspace using deployment utilities
195195
echo "🧹 Cleaning workspace..."
196-
chmod +x scripts/deployment_utils.py
196+
chmod +x deployment_utils.py
197197
198-
python3 scripts/deployment_utils.py \
198+
python3 deployment_utils.py \
199199
--registry "${{ env.REGISTRY }}" \
200200
--image-name "${{ env.IMAGE_NAME }}" \
201201
--app-path "${{ secrets.PROD_APP_PATH || '/opt/trends-earth-api' }}" \
@@ -241,7 +241,7 @@ jobs:
241241
SHORT_SHA="${COMMIT_SHA:0:7}"
242242
ROLLBACK_TAG="rollback-$SHORT_SHA"
243243
244-
python3 scripts/deployment_utils.py \
244+
python3 deployment_utils.py \
245245
--registry "${{ env.REGISTRY }}" \
246246
--image-name "${{ env.IMAGE_NAME }}" \
247247
--tag "$ROLLBACK_TAG" \
@@ -311,7 +311,7 @@ jobs:
311311
# Wait for all services to be ready after rollback
312312
echo "⏳ Waiting for all services to be ready after rollback..."
313313
314-
python3 scripts/deployment_utils.py \
314+
python3 deployment_utils.py \
315315
--registry "${{ env.REGISTRY }}" \
316316
--image-name "${{ env.IMAGE_NAME }}" \
317317
--app-path "${{ secrets.PROD_APP_PATH || '/opt/trends-earth-api' }}" \
@@ -336,7 +336,7 @@ jobs:
336336
# Navigate to application directory
337337
cd ${{ secrets.PROD_APP_PATH || '/opt/trends-earth-api' }}
338338
339-
python3 scripts/deployment_utils.py \
339+
python3 deployment_utils.py \
340340
--registry "${{ env.REGISTRY }}" \
341341
--image-name "${{ env.IMAGE_NAME }}" \
342342
--app-path "${{ secrets.PROD_APP_PATH || '/opt/trends-earth-api' }}" \

0 commit comments

Comments
 (0)