forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-staging.yml
More file actions
39 lines (32 loc) 路 1009 Bytes
/
Copy pathdeploy-staging.yml
File metadata and controls
39 lines (32 loc) 路 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Deploy to Staging
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy-staging:
name: Deploy to Staging Environment
runs-on: ubuntu-latest
environment:
name: staging
url: ${{ vars.STAGING_URL }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Load staging config
run: |
echo "ENVIRONMENT=staging" >> $GITHUB_ENV
cat infrastructure/ci/deployment-configs/staging.json
- name: Deploy application
run: echo "Deploying to staging environment..."
env:
DEPLOY_ENV: staging
API_URL: ${{ secrets.STAGING_API_URL }}
DATABASE_URL: ${{ secrets.STAGING_DATABASE_URL }}
- name: Run integration tests
run: echo "Running integration tests against staging..."
- name: Notify deployment
if: always()
run: |
STATUS="${{ job.status }}"
echo "Staging deployment ${STATUS} for commit ${{ github.sha }}"