Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
luckfunc committed Aug 17, 2024
1 parent 386c873 commit 63a86ff
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,12 @@ jobs:

- name: Push Docker image
run: docker push ${{ secrets.DOCKER_HUB_USERNAME }}/base64-tool:latest

- name: Deploy to server
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }} << 'EOF'
docker pull ${{ secrets.DOCKER_HUB_USERNAME }}/base64-tool:latest
docker stop base64-tool || true
docker rm base64-tool || true
docker run -d -p 3000:3000 --name base64-tool ${{ secrets.DOCKER_HUB_USERNAME }}/base64-tool:latest
EOF

0 comments on commit 63a86ff

Please sign in to comment.