Skip to content

Commit 6fabbb9

Browse files
committed
feat: add zcluster installation and deployment steps to workflow
1 parent a40fb14 commit 6fabbb9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/cd.deploy.stg.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,13 @@ jobs:
100100
docker push ghcr.io/dzcode-io/stage-dot-dzcode-dot-io-server:latest
101101
env:
102102
CR_PAT: ${{ secrets.CR_PAT }}
103+
104+
- name: install zcluster
105+
run: curl -fsSL https://infra.zak-man.com/install.sh | sh
106+
- name: Add zcluster to PATH
107+
run: echo "/home/runner/.zcluster/bin" >> $GITHUB_PATH
108+
109+
- name: Deploy to zcluster
110+
run: zcluster deploy -p stage-dzcode ./docker-compose.yml
111+
env:
112+
ADMIN_AUTH_TOKEN: ${{ secrets.ADMIN_AUTH_TOKEN }}

0 commit comments

Comments
 (0)