File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 44 release :
55 types : [published]
66
7+ permissions :
8+ id-token : write
9+ contents : read
10+
711jobs :
812 pdp-tests :
913 runs-on : ubuntu-latest
@@ -190,3 +194,21 @@ jobs:
190194 tags : permitio/pdp-v2:${{ github.event.release.tag_name }},permitio/pdp-v2:latest
191195 cache-from : type=gha
192196 cache-to : type=gha,mode=max
197+
198+ update-pdp-api-ecs-service :
199+ needs : build-and-push-pdp
200+ runs-on : ubuntu-latest
201+ if : " !github.event.release.prerelease"
202+ steps :
203+ - name : Configure AWS credentials
204+ uses : aws-actions/configure-aws-credentials@v4
205+ with :
206+ role-to-assume : ${{ secrets.PDP_CICD_AWS_ROLE }}
207+ aws-region : us-east-1
208+
209+ - name : Redeploy ECS service - pdp-general-redoc-service
210+ run : |
211+ aws ecs update-service \
212+ --cluster public-pdps-us-east-1 \
213+ --service pdp-general-redoc-service-731a74c \
214+ --force-new-deployment
You can’t perform that action at this time.
0 commit comments