forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-dev.yml
More file actions
36 lines (29 loc) 路 920 Bytes
/
Copy pathdeploy-dev.yml
File metadata and controls
36 lines (29 loc) 路 920 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
name: Deploy to Development
on:
push:
branches: [develop]
jobs:
deploy-dev:
name: Deploy to Dev Environment
runs-on: ubuntu-latest
environment: development
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Load dev config
run: |
echo "ENVIRONMENT=development" >> $GITHUB_ENV
cat infrastructure/ci/deployment-configs/dev.json
- name: Deploy application
run: echo "Deploying to development environment..."
env:
DEPLOY_ENV: development
API_URL: ${{ secrets.DEV_API_URL }}
DATABASE_URL: ${{ secrets.DEV_DATABASE_URL }}
- name: Run smoke tests
run: echo "Running smoke tests against dev..."
- name: Notify deployment
if: always()
run: |
STATUS="${{ job.status }}"
echo "Dev deployment ${STATUS} for commit ${{ github.sha }}"