ci(deploy): drop unprovisioned prod dispatch path

This commit is contained in:
Adam Moussa 2026-08-30 20:49:55 -04:00
parent 95d0454b07
commit 171aca66b8

View file

@ -67,16 +67,16 @@ jobs:
name: Deploy shoc-backend to Elastic Beanstalk
if: >
github.event_name == 'workflow_dispatch' &&
contains(fromJSON('["refs/heads/dev","refs/heads/staging","refs/heads/main"]'), github.ref)
contains(fromJSON('["refs/heads/dev","refs/heads/staging"]'), github.ref)
needs: validate
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
environment:
name: ${{ github.ref_name == 'main' && 'prod' || github.ref_name }}
name: ${{ github.ref_name }}
concurrency:
group: deploy-${{ github.ref_name == 'main' && 'prod' || github.ref_name }}
group: deploy-${{ github.ref_name }}
cancel-in-progress: false
steps:
- name: Checkout
@ -97,11 +97,6 @@ jobs:
environment=shoc-backend-staging
smoke_url=https://api.staging.seahaven.com
;;
main)
application=shoc-backend
environment=shoc-backend-prod
smoke_url=https://api.seahaven.com
;;
*)
echo "Unsupported ref ${GITHUB_REF_NAME}" >&2
exit 1