Spaces:
Runtime error
Runtime error
Soutrik
commited on
Commit
•
4f7a99d
1
Parent(s):
4594919
cd updated
Browse files- .github/workflows/cd.yaml +6 -4
- .github/workflows/ci.yaml +2 -1
.github/workflows/cd.yaml
CHANGED
@@ -28,11 +28,13 @@ jobs:
|
|
28 |
id: login-ecr
|
29 |
uses: aws-actions/amazon-ecr-login@v2
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
- name: Run Docker Compose for train service
|
32 |
-
env:
|
33 |
-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
34 |
-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
35 |
-
AWS_REGION: ${{ secrets.AWS_REGION }}
|
36 |
run: |
|
37 |
docker-compose up -d --build train
|
38 |
|
|
|
28 |
id: login-ecr
|
29 |
uses: aws-actions/amazon-ecr-login@v2
|
30 |
|
31 |
+
- name: Create .env file
|
32 |
+
run: |
|
33 |
+
echo "AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }}" >> .env
|
34 |
+
echo "AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> .env
|
35 |
+
echo "AWS_REGION=${{ secrets.AWS_REGION }}" >> .env
|
36 |
+
|
37 |
- name: Run Docker Compose for train service
|
|
|
|
|
|
|
|
|
38 |
run: |
|
39 |
docker-compose up -d --build train
|
40 |
|
.github/workflows/ci.yaml
CHANGED
@@ -4,10 +4,11 @@ on:
|
|
4 |
push:
|
5 |
branches:
|
6 |
- main
|
7 |
-
|
8 |
pull_request:
|
9 |
branches:
|
10 |
- main
|
|
|
11 |
|
12 |
jobs:
|
13 |
python_basic_test:
|
|
|
4 |
push:
|
5 |
branches:
|
6 |
- main
|
7 |
+
# - feat/pytorch-catdog-setup
|
8 |
pull_request:
|
9 |
branches:
|
10 |
- main
|
11 |
+
workflow_dispatch:
|
12 |
|
13 |
jobs:
|
14 |
python_basic_test:
|