Skip to content

Commit

Permalink
separate build and deploy jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronhelton committed Nov 29, 2024
1 parent 307c938 commit 0a39191
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/deploy-uat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [main]

jobs:
build-and-deploy:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -41,8 +41,16 @@ jobs:
aws ecr get-login-password --region ${AWS_REGION} | docker login --username AWS --password-stdin ${{secrets.AWS_ACCOUNT_ID}}.dkr.ecr.${AWS_REGION}.amazonaws.com
docker push ${{secrets.AWS_ACCOUNT_ID}}.dkr.ecr.${AWS_REGION}.amazonaws.com/gstream/nginx:latest
deploy:
runs-on: ubuntu-latest
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{secrets.AWS_REGION}}

- name: Update ECS Task Definition
run: |
aws ecs update-service --cluster gstreamCluster --service gstreamService --task-definition gstreamTaskDefinition
# ... Additional steps for updating the ECS service with the new task definition ...

0 comments on commit 0a39191

Please sign in to comment.