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