From 4aa73e27a1e8fdf6417734731fa54a9451720415 Mon Sep 17 00:00:00 2001 From: Flokapi Date: Tue, 17 Sep 2024 20:18:30 +0700 Subject: [PATCH] Fix --- .github/workflows/build-deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 1ac1b44..c65b7af 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -37,12 +37,13 @@ jobs: python-version: "3.12" - name: update pip run: python -m pip install --upgrade pip + - name: install run: make install + - name: test run: make test - - name: Login to Docker Hub uses: docker/login-action@v1 with: @@ -114,7 +115,7 @@ jobs: # docker build -t img_cls:latest . # docker run -p 8000:8000 -d --name img_cls_cont img_cls:latest - docker run -p 8000:8000 -d --name ${{ secrets.DOCKER_HUB_USERNAME }}/img_cls_cont img_cls:latest + docker run -p 8000:8000 -d --name img_cls_cont ${{ secrets.DOCKER_HUB_USERNAME }}/img_cls:latest docker image prune -af # echo ${{secrets.PROD_PASSWORD}} | sudo -S systemctl restart image-classification