Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/scripts/deploy-instance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ if ! kubectl get namespace/ci-{{INSTANCE}}-ns-pm4 >/dev/null 2>&1; then
echo "Removing Job"
kubectl delete job mysql-setup-job-ci-{{INSTANCE}}
echo "Deploying Instance :: ci-{{INSTANCE}}"
echo "OCTANE: ${OCTANE}"
cat .github/templates/instance.yaml
# Evaluate the command and store the result
APP_VERSION=$(echo "$CI_PROJECT-$CI_PACKAGE_BRANCH" | sed "s;/;-;g" | sed "s/refs-heads-//g")

helm install --timeout 75m -f .github/templates/instance.yaml ci-{{INSTANCE}} processmaker/enterprise \
--set deploy.web.octane.enable=${OCTANE} \
--set deploy.pmai.openaiApiKey=${OPENAI_API_KEY} \
--set analytics.awsAccessKey=${ANALYTICS_AWS_ACCESS_KEY} \
--set analytics.awsSecretKey=${ANALYTICS_AWS_SECRET_KEY} \
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/deploy-pm4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ env:
DOM_EKS: ${{ secrets.DOM_EKS }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
BUILD_BASE: ${{ (contains(github.event.pull_request.body, 'ci:build-base') || github.event_name == 'schedule') && '1' || '0' }}
MULTITENANCY: ${{ (contains(github.event.pull_request.body, 'ci:multitenancy')) && 'true' || 'false' }}
MULTITENANCY: ${{ contains(github.event.pull_request.body, 'ci:single-tenant') && 'false' || 'true' }}
OCTANE: ${{ contains(github.event.pull_request.body, 'ci:no-octane') && 'false' || 'true' }}
BASE_IMAGE: ${{ secrets.REGISTRY_HOST }}/processmaker/processmaker:base
CUSTOMER_LICENSES_PAT: ${{ secrets.CUSTOMER_LICENSES_PAT }}
SKIP_REDEPLOY: ${{ (contains(github.event.pull_request.body, 'ci:skip-redeploy')) && 'true' || 'false' }}
Expand Down Expand Up @@ -200,6 +201,7 @@ jobs:
RDS_ADMIN_PASSWORD: ${{ secrets.RDS_ADMIN_PASSWORD }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
OCTANE: ${{ env.OCTANE }}
run: |
instance=$(echo -n ${{env.IMAGE_TAG}} | md5sum | head -c 10)
echo "INSTANCE: $instance"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
.envrc
pm4-eng.yaml
Loading