From 3a453c05e542045daaa5938765c928f83ec8368b Mon Sep 17 00:00:00 2001 From: shinsj4653 Date: Sun, 25 Feb 2024 15:44:51 +0900 Subject: [PATCH] Update python-app.yml --- .github/workflows/python-app.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 2387e9e..ed6213a 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -48,8 +48,9 @@ jobs: run: | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} cd ./OCR - docker build -t shinsj4653/gdsc-solution-challenge-team4-pointer:beadyeyes-ai . - docker push shinsj4653/gdsc-solution-challenge-team4-pointer:beadyeyes-ai + docker build -t gdsc-solution-challenge-team4-pointer . + docker tag gdsc-solution-challenge-team4-pointer shinsj4653/gdsc-solution-challenge-team4-pointer:${GITHUB_SHA::7} + docker push shinsj4653/gdsc-solution-challenge-team4-pointer:${GITHUB_SHA::7} # Deploy - name: Deploy @@ -60,8 +61,8 @@ jobs: key: ${{ secrets.SSH_PRIVATE_KEY }} envs: GITHUB_SHA script: | - sudo docker login -u shinsj4653 -p ${{ secrets.DOCKERHUB_PASSWORD }} - sudo docker pull shinsj4653/gdsc-solution-challenge-team4-pointer:beadyeyes-ai - sudo docker tag shinsj4653/gdsc-solution-challenge-team4-pointer:beadyeyes-ai beadyeyes-ai + sudo docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} + sudo docker pull shinsj4653/gdsc-solution-challenge-team4-pointer:${GITHUB_SHA::7} + sudo docker tag shinsj4653/gdsc-solution-challenge-team4-pointer:${GITHUB_SHA::7} beadyeyes-ai sudo docker-compose up -d