From 6a9b315ba2a3ce29982ad9a558782bea1750e210 Mon Sep 17 00:00:00 2001 From: versatile0010 Date: Sat, 30 Sep 2023 02:39:01 +0900 Subject: [PATCH] Chore(#2): ci-cd setting --- .github/workflows/cicd.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 29cb6b64..14144b1e 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -58,8 +58,8 @@ jobs: if: contains(github.ref, 'main') || contains(github.ref, 'feat/cicd') run: | docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} - docker build -f Dockerfile -t ${{ secrets.DOCKER_USERNAME }}/versatile0010 . - docker push ${{ secrets.DOCKER_USERNAME }}/versatile0010 + docker build -f Dockerfile -t ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE }} . + docker push ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE }} ## deploy to production - name: Deploy @@ -73,6 +73,6 @@ jobs: envs: GITHUB_SHA script: | sudo docker rm -f $(docker ps -qa) - sudo docker pull ${{ secrets.DOCKER_USERNAME }}/versatile0010 + sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE }} docker-compose up -d docker image prune -f \ No newline at end of file