Skip to content

Commit

Permalink
Adding zbctl
Browse files Browse the repository at this point in the history
  • Loading branch information
theburi committed Oct 29, 2024
1 parent 5db553a commit 64afd7a
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/deploy-diagram.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
push:
branches:
- main
paths:
- '**/*.bpmn'

workflow_dispatch:

jobs:
Expand All @@ -15,14 +18,18 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Push diagram to Camunda SaaS
- name: Set up zbctl
run: |
apk update
npm install -g zbctl
- name: Deploy BPMN to Zeebe
env:
CAMUNDA_API_URL: ${{ secrets.CAMUNDA_API_URL }}
CAMUNDA_API_KEY: ${{ secrets.CAMUNDA_API_KEY }}
ZEEBE_ADDRESS: ${{ secrets.ZEEBE_ADDRESS }}
ZEEBE_CLIENT_ID: ${{ secrets.ZEEBE_CLIENT_ID }}
ZEEBE_CLIENT_SECRET: ${{ secrets.ZEEBE_CLIENT_SECRET }}
ZEEBE_AUTHORIZATION_SERVER_URL: 'https://login.cloud.camunda.io/oauth/token'
run: |
curl -X POST "$CAMUNDA_API_URL/v2/deployments" \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: application/json
-H "Authorization: Bearer $CAMUNDA_API_KEY" \
-F "deployment-name=my-diagram-deployment" \
-F "webinar8.6.bpmn=src/main/resources/webinar8.6.bpmn"
zbctl status
zbctl deploy src/main/resources/webinar8.6.bpmn

0 comments on commit 64afd7a

Please sign in to comment.