forked from aleksander-dytko/Webinar-8.6
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.51 KB
/
deploy-diagram.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Deploy Diagram to Camunda SaaS
on:
pull_request:
push:
paths:
- '**/*.bpmn'
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
deploy-diagram:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up zbctl
run: |
sudo apt-get update
npm install -g zbctl
- name: Debug environment variables
run: |
echo "ZEEBE_CLIENT_ID is ${ZEEBE_CLIENT_ID:+"set"}"
echo "ZEEBE_CLIENT_SECRET is ${ZEEBE_CLIENT_SECRET:+"set"}"
- name: Check zbctl status
env:
ZEEBE_ADDRESS: '9d44c38d-cb28-4346-971d-ace24dd4ed1b.bru-2.zeebe.camunda.io:443'
ZEEBE_CLIENT_ID: 'e_f8.cIz~6Kk~IUjOpW-f8yb-nKMEKMa'
ZEEBE_CLIENT_SECRET: 'nYO6kEtp9QHbjzh29N3iYBCyZG0pM6R8u4qOcv6ZDtvQU1aX3DZUrebjn748OWhU'
ZEEBE_AUTHORIZATION_SERVER_URL: 'https://login.cloud.camunda.io/oauth/token'
run: |
zbctl status
- name: Deploy BPMN to Zeebe
env:
ZEEBE_ADDRESS: '9d44c38d-cb28-4346-971d-ace24dd4ed1b.bru-2.zeebe.camunda.io:443'
ZEEBE_CLIENT_ID: 'e_f8.cIz~6Kk~IUjOpW-f8yb-nKMEKMa'
ZEEBE_CLIENT_SECRET: 'nYO6kEtp9QHbjzh29N3iYBCyZG0pM6R8u4qOcv6ZDtvQU1aX3DZUrebjn748OWhU'
ZEEBE_AUTHORIZATION_SERVER_URL: 'https://login.cloud.camunda.io/oauth/token'
run: |
zbctl deploy '../Webinar-8.6/src/main/resources/bank loan origination and processing.bpmn'