Skip to content

ChatGP is deploying

ChatGP is deploying #2

Workflow file for this run

name: Auto Deploy
run-name: ChatGP is deploying
on: push
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST_HACKASON}}
username: ${{ secrets.SSH_USERNAME_HACKASON}}
key: ${{ secrets.SSH_PRIVATE_KEY_HACKASON}}
port: ${{ secrets.SSH_PORT_HACKASON}}
script: |
cd ~/ChatGP
git pull origin main
git checkout main
docker-compose -f docker-compose.prod.yml build
docker compose -f docker-compose.prod.yml run --rm view yarn
docker compose -f docker-compose.prod.yml run --rm view yarn build
docker compose -f docker-compose.prod.yml up -d