From 8bfa48b964c1cb866dcd479686869e38ffd3afff Mon Sep 17 00:00:00 2001 From: max <153589599+maxkubz@users.noreply.github.com> Date: Tue, 29 Oct 2024 16:28:43 +0700 Subject: [PATCH] Update build-image.yml --- .github/workflows/build-image.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 4c342e2..2bedc74 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -22,10 +22,10 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} - name: Delete Old version of Docker image run: | - docker rmi her-feeling-server:latest || echo "Image not found, skipping deletion" + docker rmi ${{ secrets.DOCKER_USERNAME }}/her-feeling-server:latest || echo "Image not found, skipping deletion" - name: Build Docker image run: | - docker build -t her-feeling-server:latest . + docker build -t ${{ secrets.DOCKER_USERNAME }}/her-feeling-server:latest . - name: Push Docker image run: | - docker push her-feeling-server:latest + docker push ${{ secrets.DOCKER_USERNAME }}/her-feeling-server:latest