Skip to content

Commit b78ec68

Browse files
author
LINESKL
committed
Fix CI/CD pipeline: update test path and Docker build command
1 parent eff86a2 commit b78ec68

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

  • .github/workflows
  • Нурканат_Алиар_CICD_15/.github/workflows

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,15 @@ jobs:
4949
REDIS_URL: redis://localhost:6379/0
5050
SECRET_KEY: test-secret-key-1234567890
5151
run: |
52-
python -m pytest Нурканат_Алиар_CICD_15/tests/test_auth.py -v
52+
python -m pytest tests/test_auth.py -v
5353
5454
- name: Upload coverage to Codecov
5555
uses: codecov/codecov-action@v3
5656
if: always()
5757

5858
- name: Build Docker image
5959
run: |
60-
docker build -t fastapi-app .
61-
60+
docker build -t fastapi-app -f Нурканат_Алиар_CICD_15/Dockerfile Нурканат_Алиар_CICD_15
6261
- name: Login to Docker Hub
6362
if: github.ref == 'refs/heads/main'
6463
uses: docker/login-action@v2

Нурканат_Алиар_CICD_15/.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ jobs:
5757

5858
- name: Build Docker image
5959
run: |
60-
docker build -t fastapi-app .
61-
60+
docker build -t fastapi-app -f Нурканат_Алиар_CICD_15/Dockerfile Нурканат_Алиар_CICD_15
6261
- name: Login to Docker Hub
6362
if: github.ref == 'refs/heads/main'
6463
uses: docker/login-action@v2

0 commit comments

Comments
 (0)