From f6dacb1bf50e8918d0d2c251ab3661eb0c506de6 Mon Sep 17 00:00:00 2001 From: shinsj4653 Date: Mon, 15 Jan 2024 16:16:26 +0900 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 470a72d..908ebaa 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -49,7 +49,7 @@ jobs: # Docker build - name: Docker build run: | - docker login -u shinsj4653 -p Shin5633^^ + docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} 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} @@ -65,7 +65,7 @@ jobs: envs: GITHUB_SHA port: 22 script: | - sudo docker login -u shinsj4653 -p Shin5633^^ + 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} gdsc-sc-pointer-backend sudo docker-compose up -d