[fix] Fixed CI/CD

This commit is contained in:
ITQ
2024-04-01 01:23:12 +03:00
parent 0867866f00
commit 78251bbcda
3 changed files with 7 additions and 37 deletions
+1 -9
View File
@@ -53,19 +53,11 @@ jobs:
- name:
run: cd backend/project && python manage.py test
build_and_push:
test_build:
runs-on: ubuntu-latest
needs: testing
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Build Docker image
run: docker build -t skillhub_backend backend/
- name: Push Docker image
run: docker push skillhub_backend