mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 17:43:12 +00:00
ci(deploy): drop unprovisioned prod dispatch path
This commit is contained in:
parent
95d0454b07
commit
171aca66b8
1 changed files with 3 additions and 8 deletions
11
.github/workflows/deploy.yml
vendored
11
.github/workflows/deploy.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue