Skip to content

chore: use service token to access tunnel #26

chore: use service token to access tunnel

chore: use service token to access tunnel #26

name: Remote Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy
uses: and-fm/cloudflared-ssh-action@v3
with:
host: ${{ secrets.SSH_HOST }}
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USERNAME }}
private_key_filename: ${{ secrets.SSH_PRIVATE_KEY_FILENAME }}
private_key_value: ${{ secrets.SSH_PRIVATE_KEY_VALUE }}
service_token_id: ${{ secrets.SERVICE_TOKEN_ID }}
service_token_secret: ${{ secrets.SERVICE_TOKEN_SECRET }}
commands: |
export https_proxy=http://127.0.0.1:1080 http_proxy=http://127.0.0.1:1080
cd /home/chuck/code/hot-search
git pull origin master
docker compose down
docker rmi hot-search:latest || true
docker compose up -d