Skip to content

Commit

Permalink
Deploy variables update
Browse files Browse the repository at this point in the history
  • Loading branch information
ivntsng committed Nov 25, 2024
1 parent 15eab4f commit e93acff
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,30 +87,30 @@ jobs:

- name: Build and push Docker image
env:
ECR_REGISTRY: ${{ secrets.ECR_REGISTRY }}
ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }}
ECR_REGISTRY: ${{ secrets.ECR_REGISTRY_WWW }}
ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY_WWW }}
IMAGE_TAG: latest
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f docker/Dockerfile .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
- name: Download task definition
run: |
aws ecs describe-task-definition --task-definition ${{ secrets.ECS_TASK_DEFINITION }} \
aws ecs describe-task-definition --task-definition ${{ secrets.ECS_TASK_DEFINITION_WWW }} \
--query taskDefinition > task-definition.json
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: ${{ secrets.CONTAINER_NAME }}
image: ${{ secrets.ECR_REGISTRY }}/${{ secrets.ECR_REPOSITORY }}:latest
container-name: ${{ secrets.CONTAINER_NAME_WWW }}
image: ${{ secrets.ECR_REGISTRY_WWW }}/${{ secrets.ECR_REPOSITORY_WWW }}:latest

- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: ${{ secrets.ECS_SERVICE }}
cluster: ${{ secrets.ECS_CLUSTER }}
service: ${{ secrets.ECS_SERVICE_WWW }}
cluster: ${{ secrets.ECS_CLUSTER_WWW }}
wait-for-service-stability: true

0 comments on commit e93acff

Please sign in to comment.