mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-04 19:32:10 +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
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue