Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirnilin authored Jul 1, 2024
1 parent 1b75578 commit d472c78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d472c78

Please sign in to comment.