mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-12 09:18:25 +03:00
fix: deploy to ceres, as the server is no longer just the tachi server (#1679)
This commit is contained in:
@@ -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