Spaces:
Runtime error
Runtime error
VenkateshRoshan
commited on
Commit
·
303e43f
1
Parent(s):
2c38e04
flask ping code updated
Browse files- .github/workflows/deploy.yml +12 -12
.github/workflows/deploy.yml
CHANGED
@@ -36,18 +36,18 @@ jobs:
|
|
36 |
id: login-ecr
|
37 |
uses: aws-actions/amazon-ecr-login@v1
|
38 |
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
|
52 |
- name: Deploy model to SageMaker
|
53 |
run: |
|
|
|
36 |
id: login-ecr
|
37 |
uses: aws-actions/amazon-ecr-login@v1
|
38 |
|
39 |
+
- name: Build and push Docker image
|
40 |
+
env:
|
41 |
+
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
|
42 |
+
ECR_REPOSITORY: customer-support-chatbot
|
43 |
+
IMAGE_TAG: latest
|
44 |
+
run: |
|
45 |
+
docker build \
|
46 |
+
--build-arg AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} \
|
47 |
+
--build-arg AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} \
|
48 |
+
--build-arg AWS_DEFAULT_REGION=${{ secrets.AWS_REGION }} \
|
49 |
+
-t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
|
50 |
+
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
|
51 |
|
52 |
- name: Deploy model to SageMaker
|
53 |
run: |
|