From 3cdc5bc2dc93b706a0a3ad91ff2592fb33d7fea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EA=B0=80=EC=98=81?= Date: Mon, 24 Jun 2024 18:18:43 +0900 Subject: [PATCH] ci: fix yml --- .github/workflows/main.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 61fed4f..aeed7bc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,8 +37,9 @@ jobs: port: ${{ secrets.PORT }} #ssh port (22) envs: GITHUB_SHA script: | - docker stop clock - docker rm clock - docker rmi ${{ secrets.DOCKER_USERNAME }}/clock - docker pull ${{ secrets.DOCKER_USERNAME }}/clock - docker run -d -p 8080:8080 --name welspy ${{ secrets.DOCKER_USERNAME }}/clock \ No newline at end of file + docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} + docker stop java + docker rm java + docker rmi ${{ secrets.DOCKER_USERNAME }}/java:latest + docker pull ${{ secrets.DOCKER_USERNAME }}/java:latest + docker run -d -p 80:8080 --name java ${{ secrets.DOCKER_USERNAME }}/java:latest \ No newline at end of file