From d472c789ef47bb9d00f077a835401c317aee802d Mon Sep 17 00:00:00 2001 From: Matvey <117184223+Sirnilin@users.noreply.github.com> Date: Mon, 1 Jul 2024 17:28:40 +0300 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 59cbc5f..f2c6de6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,7 +27,7 @@ jobs: mvn -B package --file pom.xml - name: login to Docker Hub - run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin + run: echo "${{ deploy.DOCKER_PASSWORD }}" | docker login -u "${{ deploy.DOCKER_USERNAME }}" --password-stdin - name: build the docker image uses: docker/build-push-action@v4 @@ -40,8 +40,8 @@ jobs: - name: SSH to server and deploy uses: appleboy/ssh-action@master with: - host: ${{ secrets.SERVER_HOST }} - username: ${{ secrets.SERVER_USERNAME }} + host: ${{ deploy.SERVER_HOST }} + username: ${{ deploy.SERVER_USERNAME }} key: ${{ secrets.SSH_PRIVATE_KEY }} script: | docker-compose down