File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 1111jobs :
1212 build :
1313 runs-on : ubuntu-latest
14+ services :
15+ postgres :
16+ image : postgres:17
17+ env :
18+ POSTGRES_USER : ${{ secrets.DB_USER }}
19+ POSTGRES_PASSWORD : ${{ secrets.DB_PASSWORD }}
20+ POSTGRES_DB : ${{ secrets.DB_NAME }}
21+ ports :
22+ - 5432:5432
1423
1524 steps :
1625 - name : Checkout the code
@@ -32,13 +41,13 @@ jobs:
3241 DB_NAME : ${{ secrets.DB_NAME }}
3342 DB_USER : ${{ secrets.DB_USER }}
3443 DB_PASSWORD : ${{ secrets.DB_PASSWORD }}
35- DB_HOST : ${{ secrets.DB_HOST }}
36- DB_PORT : ${{ secrets.DB_PORT }}
44+ DB_HOST : postgres
45+ DB_PORT : " 5432 "
3746 run : |
3847 python manage.py test --verbosity=2
3948
4049 release :
41- name : Create Release Tag
50+ name : Set the Release Tag
4251 if : github.ref == 'refs/heads/release/*'
4352 needs : build
4453 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments