diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 33b4b2c..961d002 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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