Skip to content

Commit

Permalink
temp CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tanguyenvn committed Jul 5, 2024
1 parent 5061e1f commit b61d7cf
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [develop]
branches: [optimize/docker]

name: LRC Release

Expand Down Expand Up @@ -77,17 +77,7 @@ jobs:
IMAGE_TAG: latest
run: |
# Build a docker container and push it to ECR
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY:$GITHUB_SHA .
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$GITHUB_SHA .
echo "Pushing image to ECR..."
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$GITHUB_SHA
echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$GITHUB_SHA"
- name: Deploy
timeout-minutes: 10
run: |
aws ecs update-service --cluster $ECS_CLUSTER_METADATA --service $ECS_SERVICE_METADATA --force-new-deployment
aws ecs wait services-stable --cluster $ECS_CLUSTER_METADATA --service $ECS_SERVICE_METADATA
env:
ECS_CLUSTER_METADATA: lrc-microservices
ECS_SERVICE_METADATA: torus-metadata-service

0 comments on commit b61d7cf

Please sign in to comment.