diff --git a/.github/templates/instance.yaml b/.github/templates/instance.yaml index af658bb..aed700b 100644 --- a/.github/templates/instance.yaml +++ b/.github/templates/instance.yaml @@ -52,6 +52,17 @@ cdata: slack: 4643444B5541535544424141454E545041325246353431324354303100000000000000000000000050524F434553534D00004635523734413735455A32360000 gmail: 4431444B5541535544424141454E545041325246353431324354303100000000000000000000000050524F434553534D00005356434441465847303144570000 api: 4641444B5541535544424141454E545041325246353431324354303100000000000000000000000050524F434553534D00004750533442365456343939530000 +microservices: + scriptExecutor: + enable: true + customExecutors: false + baseUrl: https://script-microsvr.processmaker.net + version: v4.12.2 + keycloakClientId: microservices + keycloakClientSecret: {{KEYCLOAK_CLIENT_SECRET}} + keycloakBaseUrl: https://sso-microsvr.processmaker.net/realms/master/protocol/openid-connect/token + keycloakUsername: pminstance + keycloakPassword: {{KEYCLOAK_PASSWORD}} twilio: enable: true phoneNumber: "+17243958155" diff --git a/.github/workflows/deploy-pm4.yml b/.github/workflows/deploy-pm4.yml index 656a4b4..1bfcc5b 100644 --- a/.github/workflows/deploy-pm4.yml +++ b/.github/workflows/deploy-pm4.yml @@ -140,12 +140,16 @@ jobs: TWILIO_TOKEN: ${{ secrets.TWILIO_TOKEN }} versionHelm: ${{ env.versionHelm }} DOM_EKS: ${{ env.DOM_EKS }} + KEYCLOAK_CLIENT_SECRET: ${{ secrets.KEYCLOAK_CLIENT_SECRET }} + KEYCLOAK_PASSWORD: ${{ secrets.KEYCLOAK_PASSWORD }} run: | instance=$(echo -n ${{env.IMAGE_TAG}} | md5sum | head -c 10) sed -i 's/{{INSTANCE}}/'"$instance"'/g' .github/scripts/deploy-instance.sh sed -i 's/{{INSTANCE}}/'"$instance"'/g' .github/templates/instance.yaml sed -i 's/{{INSTANCE}}/'"$instance"'/g' .github/templates/db.yaml sed -i 's/{{IMAGE_TAG}}/'"${{env.IMAGE_TAG}}"'/g' .github/templates/instance.yaml + sed -i 's/{{KEYCLOAK_CLIENT_SECRET}}/'"${{env.KEYCLOAK_CLIENT_SECRET}}"'/g' .github/templates/instance.yaml + sed -i 's/{{KEYCLOAK_PASSWORD}}/'"${{env.KEYCLOAK_PASSWORD}}"'/g' .github/templates/instance.yaml chmod +x .github/scripts/deploy-instance.sh bash .github/scripts/deploy-instance.sh export INSTANCE_URL="https://ci-$instance.engk8s.processmaker.net"