Skip to content

Commit

Permalink
merge: #2727
Browse files Browse the repository at this point in the history
2727: chore(ci): Add ability to kick a module index deployment r=stack72 a=stack72



Co-authored-by: stack72 <[email protected]>
  • Loading branch information
si-bors-ng[bot] and stack72 authored Sep 6, 2023
2 parents d88b9e6 + d1fb24f commit 2be737b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy-module-index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy Module Index
"on":
workflow_dispatch: { }

env:
MODULE_INDEX_CLUSTER: module-index-server-51059bf
MODULE_INDEX_SERVICE: module-index

jobs:
deploy:
name: Build and push container
runs-on: ubuntu-latest
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ECS_DEPLOYMENT_USER_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_ECS_DEPLOYMENT_USER_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_ECS_REGION }}
- name: Trigger ECS Deploy
run: |
aws ecs update-service --region ${{ secrets.AWS_ECS_REGION }} --cluster ${{ env.MODULE_INDEX_CLUSTER }} --service ${{ env.MODULE_INDEX_SERVICE }} --force-new-deployment

0 comments on commit 2be737b

Please sign in to comment.