ChatGP is deploying #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |