diff --git a/.github/workflows/release-cd.yml b/.github/workflows/release-cd.yml index d0ca14d..ecd73fe 100644 --- a/.github/workflows/release-cd.yml +++ b/.github/workflows/release-cd.yml @@ -63,8 +63,13 @@ jobs: key: ${{ secrets.SSH_PRIVATE_KEY }} script: | sudo docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} - sudo docker-compose stop ${{ secrets.DOCKER_SERVICE_NAME }} - sudo docker-compose rm -f ${{ secrets.DOCKER_SERVICE_NAME }} sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY}} - sudo docker tag ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY}} ${{ secrets.DOCKER_IMAGE_NAME }} - sudo docker compose up -d + cd ~ + sudo chmod +x depoly.sh + ./depoly.sh +# sudo docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} +# sudo docker-compose stop ${{ secrets.DOCKER_SERVICE_NAME }} +# sudo docker-compose rm -f ${{ secrets.DOCKER_SERVICE_NAME }} +# sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY}} +# sudo docker tag ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY}} ${{ secrets.DOCKER_IMAGE_NAME }} +# sudo docker compose up -d