60
60
push_to_registry :
61
61
name : Push Docker image to HerokuApp (as production env)
62
62
if : ${{ github.ref == 'refs/heads/main' }}
63
- needs : [verify-django, verify-js, verify-python, release]
63
+ needs : [release]
64
64
runs-on : ubuntu-latest
65
65
environment :
66
66
name : production
@@ -117,3 +117,35 @@ jobs:
117
117
env :
118
118
HEROKU_API_KEY : ${{ secrets.HEROKU_API_KEY }}
119
119
run : heroku container:release web -a packet-helper-pr
120
+ post_deploy_check_pr :
121
+ name : Check status of env (as development env)
122
+ if : ${{ github.ref != 'refs/heads/main' }}
123
+ needs : [ push_to_registry_pr ]
124
+ runs-on : ubuntu-latest
125
+ steps :
126
+ - name : Checkout repository
127
+ uses : actions/checkout@v2
128
+ with :
129
+ fetch-depth : 0
130
+ - name : Verify /api/info
131
+ run : |
132
+ pip install requests pydantic
133
+ export GIT_VERSION_TAG=`git describe --tags --abbrev=0`
134
+ export SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`
135
+ python check_deployment.py https://packet-helper-pr.herokuapp.com $GIT_VERSION_TAG $SHORT_SHA
136
+ post_deploy_check_prod :
137
+ name : Check status of env (as production env)
138
+ if : ${{ github.ref != 'refs/heads/main' }}
139
+ needs : [ push_to_registry ]
140
+ runs-on : ubuntu-latest
141
+ steps :
142
+ - name : Checkout repository
143
+ uses : actions/checkout@v2
144
+ with :
145
+ fetch-depth : 0
146
+ - name : Verify /api/info
147
+ run : |
148
+ pip install requests pydantic
149
+ export GIT_VERSION_TAG=`git describe --tags --abbrev=0`
150
+ export SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`
151
+ python check_deployment.py https://www.packethelper.com $GIT_VERSION_TAG $SHORT_SHA
0 commit comments