mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-10 08:18:12 +03:00
chore: rename workflows
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
name: Bot Build & Push
|
||||
name: Bot CI/CD
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
branches:
|
||||
- "release/*"
|
||||
paths:
|
||||
- "bot/**"
|
||||
- "common/**"
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
docker-push:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -18,13 +18,13 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
|
||||
- name: Docker Hub login
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_TOKEN }}
|
||||
|
||||
|
||||
- name: Version tag
|
||||
run: 'echo "VERSION_TAG=$(cat package.json | grep version | head -1 | awk -F: ''{ print $2 }'' | sed ''s/[", ]//g'')" >> $GITHUB_ENV'
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
name: Client Deploy
|
||||
name: Client CI/CD
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
branches:
|
||||
- "staging"
|
||||
- "release/*"
|
||||
paths:
|
||||
- "client/**"
|
||||
- "common/**"
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
username: tachi
|
||||
key: ${{ secrets.TACHI_KEY }}
|
||||
script: tachi-client-deploy -s
|
||||
|
||||
|
||||
- name: Deploy to live
|
||||
if: startsWith(github.ref, 'refs/heads/release')
|
||||
uses: appleboy/ssh-action@1a8b3784eaa665f677fa114edd5683bb6a6bfaa8
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Update Database-Seeds
|
||||
name: Database-Seeds CI/CD
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -43,6 +43,7 @@ jobs:
|
||||
run: pnpm test
|
||||
env:
|
||||
NODE_ENV: "test"
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [test]
|
||||
@@ -56,6 +57,7 @@ jobs:
|
||||
username: tachi
|
||||
key: ${{ secrets.TACHI_KEY }}
|
||||
script: tachi-database-sync -s
|
||||
|
||||
- name: Sync Live Database
|
||||
if: startsWith(github.ref, 'refs/heads/release')
|
||||
uses: appleboy/ssh-action@1a8b3784eaa665f677fa114edd5683bb6a6bfaa8
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Server Test, Build, & Deploy
|
||||
name: Server CI/CD
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
Reference in New Issue
Block a user