diff --git a/.github/templates/instance.yaml b/.github/templates/instance.yaml index 7fd05d6..d59c221 100644 --- a/.github/templates/instance.yaml +++ b/.github/templates/instance.yaml @@ -1,9 +1,13 @@ appVersion: {{IMAGE_TAG}} +eksCluster: pm4-eng appConfig: https: false subdomain: .engk8s.processmaker.net customSecurityPolicy: true customSecurityPolicyUrl: 'https://adobexdplatform.com https://*.quicksight.aws.amazon.com https://www.canva.com https://excalidraw.com https://www.figma.com https://flocus.com https://www.framer.com https://giphy.com https://lookerstudio.google.com https://maps.google.com https://docs.google.com https://www.loom.com https://miro.com https://mixpanel.com https://pitch.com https://prezi.com https://www.sketch.com https://www.slideshare.net https://supademo.com https://www.tableau.com https://forms.app https://vimeo.com https://www.youtube.com' + licenseRepo: processmaker/customer-licenses.git + licenseBranch: production + licenseGitToken: {{CUSTOMER_LICENSES_PAT}} deploy: pmai: openaiHost: pmai-svc.{{pmai-system}}.svc.cluster.local diff --git a/.github/workflows/deploy-pm4.yml b/.github/workflows/deploy-pm4.yml index 1bfcc5b..da83ba4 100644 --- a/.github/workflows/deploy-pm4.yml +++ b/.github/workflows/deploy-pm4.yml @@ -27,6 +27,7 @@ env: GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} BUILD_BASE: ${{ (contains(github.event.pull_request.body, 'ci:build-base') || github.event_name == 'schedule') && '1' || '0' }} BASE_IMAGE: ${{ secrets.REGISTRY_HOST }}/processmaker/processmaker:base + CUSTOMER_LICENSES_PAT: ${{ secrets.CUSTOMER_LICENSES_PAT }} # K8S_BRANCH: ${{ contains(github.event.pull_request.body, 'ci:next') && 'next' || 'release-2024-fall' }} concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} @@ -142,6 +143,7 @@ jobs: DOM_EKS: ${{ env.DOM_EKS }} KEYCLOAK_CLIENT_SECRET: ${{ secrets.KEYCLOAK_CLIENT_SECRET }} KEYCLOAK_PASSWORD: ${{ secrets.KEYCLOAK_PASSWORD }} + CUSTOMER_LICENSES_PAT: ${{ secrets.CUSTOMER_LICENSES_PAT }} run: | instance=$(echo -n ${{env.IMAGE_TAG}} | md5sum | head -c 10) sed -i 's/{{INSTANCE}}/'"$instance"'/g' .github/scripts/deploy-instance.sh @@ -150,6 +152,7 @@ jobs: 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 + sed -i 's/{{CUSTOMER_LICENSES_PAT}}/'"${{env.CUSTOMER_LICENSES_PAT}}"'/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"