Parcourir la source

Delivery step for ECS (#313)

added aws-cli call for service restart
Rustam Gimadiev il y a 4 ans
Parent
commit
752c19dd9c
1 fichiers modifiés avec 15 ajouts et 0 suppressions
  1. 15 0
      .github/workflows/latest.yaml

+ 15 - 0
.github/workflows/latest.yaml

@@ -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