Skip to content

Commit

Permalink
hehehe
Browse files Browse the repository at this point in the history
  • Loading branch information
ntlehoangson committed Jun 5, 2024
1 parent db83c76 commit e372ef1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ jobs:
# docker-compose pull
# docker-compose up -d
# '
- name: copy file via ssh key
uses: appleboy/[email protected]
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
port: 22
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: "docker-compose.yml"
target: project

- name: Deploy to server
env:
HOST: ${{ secrets.SERVER_HOST }}
Expand All @@ -67,7 +77,6 @@ jobs:
mkdir -p project
'
scp -i ssh_key -o StrictHostKeyChecking=no -r docker-compose.yml $USERNAME@$HOST:/project
ssh -i ssh_key -o StrictHostKeyChecking=no $USERNAME@$HOST '
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} &&
cd /project
Expand Down

0 comments on commit e372ef1

Please sign in to comment.