mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-07 22:38:02 +03:00
fix: deploy to ceres, as the server is no longer just the tachi server (#1679)
This commit is contained in:
@@ -133,7 +133,7 @@ jobs:
|
||||
cache-to: type=gha,mode=max,scope=${{ github.ref_name }}-bot
|
||||
|
||||
dispatch-deploy:
|
||||
# See server.yml for rationale — deploy logs live in the private tachi-deploy repo.
|
||||
# See server.yml for rationale — deploy logs live in the private server-ceres repo.
|
||||
runs-on: ubuntu-latest
|
||||
needs: [test, docker-push]
|
||||
if: ${{ github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') }}
|
||||
@@ -149,10 +149,10 @@ jobs:
|
||||
SHA: ${{ github.sha }}
|
||||
IMAGE_TAG: ${{ needs.docker-push.outputs.image_tag }}
|
||||
run: |
|
||||
gh api repos/zkldi/tachi-deploy/dispatches \
|
||||
gh api repos/zkldi/server-ceres/dispatches \
|
||||
-f event_type=deploy \
|
||||
-F "client_payload[app]=bot" \
|
||||
-F "client_payload[dest]=${DEST}" \
|
||||
-F "client_payload[sha]=${SHA}" \
|
||||
-F "client_payload[image_tag]=${IMAGE_TAG}"
|
||||
echo "::notice::Dispatched bot@${DEST} ${IMAGE_TAG} (${SHA}) — logs: https://github.com/zkldi/tachi-deploy/actions/workflows/deploy.yml"
|
||||
echo "::notice::Dispatched bot@${DEST} ${IMAGE_TAG} (${SHA}) — logs: https://github.com/zkldi/server-ceres/actions/workflows/tachi-deploy.yml"
|
||||
|
||||
@@ -43,7 +43,7 @@ jobs:
|
||||
NODE_ENV: "test"
|
||||
|
||||
dispatch-deploy:
|
||||
# See ../workflows/server.yml for rationale — deploy logs live in tachi-deploy.
|
||||
# See ../workflows/server.yml for rationale — deploy logs live in server-ceres.
|
||||
runs-on: ubuntu-latest
|
||||
needs: [test]
|
||||
if: ${{ github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') }}
|
||||
@@ -53,9 +53,9 @@ jobs:
|
||||
GH_TOKEN: ${{ secrets.DEPLOY_DISPATCH_TOKEN }}
|
||||
SHA: ${{ github.sha }}
|
||||
run: |
|
||||
gh api repos/zkldi/tachi-deploy/dispatches \
|
||||
gh api repos/zkldi/server-ceres/dispatches \
|
||||
-f event_type=deploy \
|
||||
-F "client_payload[app]=seeds" \
|
||||
-F "client_payload[dest]=-" \
|
||||
-F "client_payload[sha]=${SHA}"
|
||||
echo "::notice::Dispatched seeds ${SHA} — logs: https://github.com/zkldi/tachi-deploy/actions/workflows/deploy.yml"
|
||||
echo "::notice::Dispatched seeds ${SHA} — logs: https://github.com/zkldi/server-ceres/actions/workflows/tachi-deploy.yml"
|
||||
|
||||
@@ -102,7 +102,7 @@ jobs:
|
||||
cache-to: type=gha,mode=max,scope=${{ github.ref_name }}-github-bot
|
||||
|
||||
dispatch-deploy:
|
||||
# See server.yml for rationale — deploy logs live in the private tachi-deploy repo.
|
||||
# See server.yml for rationale — deploy logs live in the private server-ceres repo.
|
||||
runs-on: ubuntu-latest
|
||||
needs: [test, docker-push]
|
||||
if: ${{ github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') }}
|
||||
@@ -113,10 +113,10 @@ jobs:
|
||||
SHA: ${{ github.sha }}
|
||||
IMAGE_TAG: ${{ needs.docker-push.outputs.image_tag }}
|
||||
run: |
|
||||
gh api repos/zkldi/tachi-deploy/dispatches \
|
||||
gh api repos/zkldi/server-ceres/dispatches \
|
||||
-f event_type=deploy \
|
||||
-F "client_payload[app]=ghbot" \
|
||||
-F "client_payload[dest]=-" \
|
||||
-F "client_payload[sha]=${SHA}" \
|
||||
-F "client_payload[image_tag]=${IMAGE_TAG}"
|
||||
echo "::notice::Dispatched ghbot ${IMAGE_TAG} (${SHA}) — logs: https://github.com/zkldi/tachi-deploy/actions/workflows/deploy.yml"
|
||||
echo "::notice::Dispatched ghbot ${IMAGE_TAG} (${SHA}) — logs: https://github.com/zkldi/server-ceres/actions/workflows/tachi-deploy.yml"
|
||||
|
||||
@@ -193,9 +193,9 @@ jobs:
|
||||
cache-to: type=gha,mode=max,scope=server-${{ github.ref_name }}
|
||||
|
||||
dispatch-deploy:
|
||||
# Fire a repository_dispatch at tachi-deploy (private). That repo's workflow
|
||||
# Fire a repository_dispatch at server-ceres (private). That repo's workflow
|
||||
# owns the SSH key and Kamal output — keeping deploy logs out of this
|
||||
# public repo. See tachi-deploy/.github/workflows/deploy.yml.
|
||||
# public repo. See server-ceres/.github/workflows/tachi-deploy.yml.
|
||||
runs-on: ubuntu-latest
|
||||
needs: [test, docker-push]
|
||||
if: ${{ github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') }}
|
||||
@@ -208,16 +208,16 @@ jobs:
|
||||
steps:
|
||||
- name: Dispatch deploy
|
||||
env:
|
||||
# Fine-grained PAT, repo-scoped to zkldi/tachi-deploy, Contents: write.
|
||||
# Fine-grained PAT, repo-scoped to zkldi/server-ceres, Contents: write.
|
||||
GH_TOKEN: ${{ secrets.DEPLOY_DISPATCH_TOKEN }}
|
||||
DEST: ${{ matrix.destination }}
|
||||
SHA: ${{ github.sha }}
|
||||
IMAGE_TAG: ${{ needs.docker-push.outputs.image_tag }}
|
||||
run: |
|
||||
gh api repos/zkldi/tachi-deploy/dispatches \
|
||||
gh api repos/zkldi/server-ceres/dispatches \
|
||||
-f event_type=deploy \
|
||||
-F "client_payload[app]=server" \
|
||||
-F "client_payload[dest]=${DEST}" \
|
||||
-F "client_payload[sha]=${SHA}" \
|
||||
-F "client_payload[image_tag]=${IMAGE_TAG}"
|
||||
echo "::notice::Dispatched server@${DEST} ${IMAGE_TAG} (${SHA}) — logs: https://github.com/zkldi/tachi-deploy/actions/workflows/deploy.yml"
|
||||
echo "::notice::Dispatched server@${DEST} ${IMAGE_TAG} (${SHA}) — logs: https://github.com/zkldi/server-ceres/actions/workflows/tachi-deploy.yml"
|
||||
|
||||
Reference in New Issue
Block a user