diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml index dd4be62..5b1b014 100644 --- a/.github/workflows/gradle-build.yml +++ b/.github/workflows/gradle-build.yml @@ -65,9 +65,10 @@ jobs: host: ${{ secrets.EC2_HOST }} username: ${{ secrets.EC2_USERNAME }} key: ${{ secrets.EC2_KEY }} - port: ${{ secrets.EC2_SSH_PORT }} + port: 22 script: | + sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} sudo docker rm -f $(sudo docker ps -qa) sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }} sudo docker-compose up -d