Delivery step for ECS (#313)

added aws-cli call for service restart
This commit is contained in:
Rustam Gimadiev 2021-03-25 10:39:42 +03:00 committed by GitHub
parent a256709580
commit 752c19dd9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,3 +59,18 @@ jobs:
JAR_FILE=kafka-ui-api-${{ steps.build.outputs.version }}.jar
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
#################
# #
# ECS update #
# #
#################
- name: Configure AWS credentials from Test account
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.TEST_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.TEST_AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-1
- name: Restart service with the AWS CLI
run: |
aws --region eu-west-1 ecs update-service --cluster kad-ecs --service kad-ecs-kafka-ui --force-new-deployment