Skip to content

Commit df96690

Browse files
authored
Merge pull request #656 from hackforla/add-ecs-action-incubator-migration-pt2
added ECS redeployment step, edited IMAGE_TAG, changed action name
2 parents b026bec + 26cb3ec commit df96690

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/deploy-stage.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: deploy-dev
1+
name: deploy-stage
22
on:
33
push:
44
branches:
@@ -33,8 +33,15 @@ jobs:
3333
env:
3434
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
3535
ECR_REPOSITORY: civic-tech-jobs-fullstack
36-
IMAGE_TAG: dev
36+
IMAGE_TAG: stage
3737
run: |
3838
docker build -f ./stage/Dockerfile -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
3939
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
4040
41+
- name: Redeploy Image in Amazon ECS-Fargate
42+
id: redeploy-service
43+
env:
44+
CLUSTER_NAME: incubator-prod
45+
SERVICE_NAME: civic-tech-jobs-fs-stage
46+
run: |
47+
aws ecs update-service --force-new-deployment --service $SERVICE_NAME --cluster $CLUSTER_NAME

0 commit comments

Comments
 (0)