2424# AWS_ROLE_TO_ASSUME — OIDC role ARN with ECR push permission
2525# AWS_REGION — e.g. us-east-1
2626# GITOPS_DEPLOY_TOKEN — PAT (contents:write) on mypythonproject1-gitops
27- # ARGOCD_SERVER — ArgoCD server hostname ( no https:// )
27+ # ARGOCD_SERVER — ArgoCD server hostname only, no scheme (e.g. argocd.1.2.3.4.nip.io )
2828# ARGOCD_TOKEN — ArgoCD API token for health poll
2929#
3030# Variables (GitHub Environments):
@@ -189,7 +189,7 @@ jobs:
189189 for i in $(seq 1 $MAX); do
190190 RESP=$(curl -sf \
191191 -H "Authorization: Bearer $ARGOCD_TOKEN" \
192- "https ://${ARGOCD_SERVER}/api/v1/applications/${APP}" || true)
192+ "http ://${ARGOCD_SERVER}/api/v1/applications/${APP}" || true)
193193
194194 HEALTH=$(echo "$RESP" | jq -r '.status.health.status // "Unknown"')
195195 SYNC=$(echo "$RESP" | jq -r '.status.sync.status // "Unknown"')
@@ -216,6 +216,7 @@ jobs:
216216 # ---------------------------------------------------------------------------
217217 smoke-test-dev :
218218 name : " Smoke Test [dev]"
219+ if : false # disabled until APP_URL is configured after first deploy
219220 needs : [argocd-sync-dev]
220221 uses : ./.github/workflows/_smoke-test.yml
221222 with :
@@ -237,8 +238,8 @@ jobs:
237238 timeout-minutes : 20
238239 if : >
239240 (github.event_name == 'workflow_run'
240- && github.event.workflow_run.conclusion == 'success')
241- || (github.event_name == 'workflow_dispatch'
241+ && github.event.workflow_run.conclusion == 'success') ||
242+ (github.event_name == 'workflow_dispatch'
242243 && inputs.environment == 'staging')
243244 environment : staging
244245 strategy :
@@ -375,7 +376,7 @@ jobs:
375376 for i in $(seq 1 $MAX); do
376377 RESP=$(curl -sf \
377378 -H "Authorization: Bearer $ARGOCD_TOKEN" \
378- "https ://${ARGOCD_SERVER}/api/v1/applications/${APP}" || true)
379+ "http ://${ARGOCD_SERVER}/api/v1/applications/${APP}" || true)
379380
380381 HEALTH=$(echo "$RESP" | jq -r '.status.health.status // "Unknown"')
381382 SYNC=$(echo "$RESP" | jq -r '.status.sync.status // "Unknown"')
@@ -402,6 +403,7 @@ jobs:
402403 # ---------------------------------------------------------------------------
403404 smoke-test-staging :
404405 name : " Smoke Test [staging]"
406+ if : false # disabled until APP_URL is configured after first deploy
405407 needs : [argocd-sync-staging]
406408 uses : ./.github/workflows/_smoke-test.yml
407409 with :
@@ -461,7 +463,7 @@ jobs:
461463 runs-on : ubuntu-latest
462464 timeout-minutes : 20
463465 if : startsWith(github.ref, 'refs/tags/v')
464- environment : production
466+ environment : prod
465467 strategy :
466468 matrix :
467469 service : [backend, frontend]
@@ -521,7 +523,7 @@ jobs:
521523 runs-on : ubuntu-latest
522524 timeout-minutes : 10
523525 needs : [build-production]
524- environment : production
526+ environment : prod
525527 permissions :
526528 contents : read
527529 steps :
@@ -568,7 +570,7 @@ jobs:
568570 runs-on : ubuntu-latest
569571 timeout-minutes : 20
570572 needs : [update-gitops-production]
571- environment : production
573+ environment : prod
572574 steps :
573575 - name : Poll ArgoCD application health
574576 env :
@@ -582,7 +584,7 @@ jobs:
582584 for i in $(seq 1 $MAX); do
583585 RESP=$(curl -sf \
584586 -H "Authorization: Bearer $ARGOCD_TOKEN" \
585- "https ://${ARGOCD_SERVER}/api/v1/applications/${APP}" || true)
587+ "http ://${ARGOCD_SERVER}/api/v1/applications/${APP}" || true)
586588
587589 HEALTH=$(echo "$RESP" | jq -r '.status.health.status // "Unknown"')
588590 SYNC=$(echo "$RESP" | jq -r '.status.sync.status // "Unknown"')
@@ -609,6 +611,7 @@ jobs:
609611 # ---------------------------------------------------------------------------
610612 smoke-test-production :
611613 name : " Smoke Test [production]"
614+ if : false # disabled until APP_URL is configured after first deploy
612615 needs : [argocd-sync-production]
613616 uses : ./.github/workflows/_smoke-test.yml
614617 with :
0 commit comments