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 name: Deploy shoc-backend to Elastic Beanstalk
if: > if: >
github.event_name == 'workflow_dispatch' && 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 needs: validate
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: read contents: read
id-token: write id-token: write
environment: environment:
name: ${{ github.ref_name == 'main' && 'prod' || github.ref_name }} name: ${{ github.ref_name }}
concurrency: concurrency:
group: deploy-${{ github.ref_name == 'main' && 'prod' || github.ref_name }} group: deploy-${{ github.ref_name }}
cancel-in-progress: false cancel-in-progress: false
steps: steps:
- name: Checkout - name: Checkout
@ -97,11 +97,6 @@ jobs:
environment=shoc-backend-staging environment=shoc-backend-staging
smoke_url=https://api.staging.seahaven.com 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 echo "Unsupported ref ${GITHUB_REF_NAME}" >&2
exit 1 exit 1