Skip to content

Commit c6a435f

Browse files
committed
dont deploy to DEV again when pushing to PROD
1 parent d451457 commit c6a435f

File tree

1 file changed

+1
-50
lines changed

1 file changed

+1
-50
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -25,55 +25,6 @@ jobs:
2525
- name: Run unit testing
2626
run: make test_unit
2727

28-
deploy-test-dev:
29-
runs-on: ubuntu-latest
30-
concurrency:
31-
group: ${{ github.event.repository.name }}-dev
32-
cancel-in-progress: false
33-
permissions:
34-
id-token: write
35-
contents: read
36-
environment: "AWS DEV"
37-
name: Deploy to DEV and Run Tests
38-
needs:
39-
- test-unit
40-
steps:
41-
- name: Set up Node for testing
42-
uses: actions/setup-node@v4
43-
with:
44-
node-version: 22.x
45-
46-
- uses: actions/checkout@v4
47-
env:
48-
HUSKY: "0"
49-
- uses: aws-actions/setup-sam@v2
50-
with:
51-
use-installer: true
52-
- name: Set up Python 3.11
53-
uses: actions/setup-python@v5
54-
with:
55-
python-version: 3.11
56-
- uses: aws-actions/configure-aws-credentials@v4
57-
with:
58-
role-to-assume: arn:aws:iam::427040638965:role/GitHubActionsRole
59-
role-session-name: Core_Dev_Prod_Deployment_${{ github.run_id }}
60-
aws-region: us-east-1
61-
- name: Publish to AWS
62-
run: make deploy_dev
63-
env:
64-
HUSKY: "0"
65-
VITE_RUN_ENVIRONMENT: dev
66-
67-
- name: Run live testing
68-
run: make test_live_integration
69-
env:
70-
JWT_KEY: ${{ secrets.JWT_KEY }}
71-
- name: Run E2E testing
72-
run: make test_e2e
73-
env:
74-
PLAYWRIGHT_USERNAME: ${{ secrets.PLAYWRIGHT_USERNAME }}
75-
PLAYWRIGHT_PASSWORD: ${{ secrets.PLAYWRIGHT_PASSWORD }}
76-
7728
deploy-prod:
7829
runs-on: ubuntu-latest
7930
name: Deploy to Prod and Run Health Check
@@ -105,7 +56,7 @@ jobs:
10556
- uses: aws-actions/configure-aws-credentials@v4
10657
with:
10758
role-to-assume: arn:aws:iam::298118738376:role/GitHubActionsRole
108-
role-session-name: Core_Dev_Prod_Deployment_${{ github.run_id }}
59+
role-session-name: Core_Prod_Deployment_${{ github.run_id }}
10960
aws-region: us-east-1
11061
- name: Publish to AWS
11162
run: make deploy_prod

0 commit comments

Comments
 (0)