Skip to content

Commit

Permalink
initial commit prod deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
jkueloc committed Sep 14, 2023
1 parent 19a7187 commit dd2d71a
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 'Deploy to production'

on:
workflow_dispatch:

env:
AWS_REGION: us-east-1

permissions:
id-token: write
contents: read

jobs:
deploy:
name: Deploy to Test
runs-on: ubuntu-latest
environment:
name: production

steps:
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
role-session-name: github_to_aws_deploy

- name:
env:
CLUSTER: ${{ secrets.CLUSTER }}
TARGET_SERVICE: ${{ secrets.TARGET_SERVICE }}
run: |
aws ecs update-service --region ${{ env.AWS_REGION }} --force-new-deployment --cluster $CLUSTER --service $TARGET_SERVICE

0 comments on commit dd2d71a

Please sign in to comment.