diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 03e4ef5..a248a15 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -65,4 +65,8 @@ jobs: key: ${{ secrets.PRIVATE_KEY }} envs: GITHUB_SHA script: | - ./deploy.sh + ssh -i -T "${{ secrets.PEM_NAME }}" ${{ secrets.WAS_HOST }}@${{ secrets.WAS_IP }} + sudo docker ps + sudo docker pull ${{ secrets.DOCKER_USERNAME }}/docker-team-b-prod + sudo docker run -d -p 8080:8080 ${{ secrets.DOCKER_USERNAME }}/docker-team-b-prod + sudo docker image prune -f