Skip to content

Commit

Permalink
Debugging release version for prod deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
benpauleypa committed Jan 31, 2025
1 parent 9e8c2bf commit 1aa4033
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/deploy_to_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,38 +25,38 @@ jobs:
echo "release is ${release}"
echo "RELEASE=${release}" >> "$GITHUB_OUTPUT"
- name: Create GitHub issue
uses: trstringer/manual-approval@v1
with:
secret: ${{ github.TOKEN }}
approvers: VinP-PA,stm-john-cooper,GaTilley,MehrajRM #TODO: Update when full list is available
minimum-approvals: 1
issue-title: "Deploying Application version ${{steps.releasev.outputs.RELEASE}} to Prod"
issue-body: "Approving this issue will deploy Application release version '${{steps.releasev.outputs.RELEASE}}' to the Production environment."
exclude-workflow-initiator-as-approver: false
# - name: Create GitHub issue
# uses: trstringer/manual-approval@v1
# with:
# secret: ${{ github.TOKEN }}
# approvers: VinP-PA,stm-john-cooper,GaTilley,MehrajRM #TODO: Update when full list is available
# minimum-approvals: 1
# issue-title: "Deploying Application version ${{steps.releasev.outputs.RELEASE}} to Prod"
# issue-body: "Approving this issue will deploy Application release version '${{steps.releasev.outputs.RELEASE}}' to the Production environment."
# exclude-workflow-initiator-as-approver: false

deploy-production:
name: Application - Deploy to Production
uses: ./.github/workflows/deploy_resources.yml
needs:
- wait-for-approval
secrets:
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER_PROD }}
wip_service_account: ${{ secrets.WIP_SERVICE_ACCOUNT_PROD }}
execution_service_account: ${{ secrets.EXECUTION_SERVICE_ACCOUNT_PROD }}
service_ui_client_id: ${{ secrets.CSO_CLIENT_ID_PROD }}
service_ui_client_secret: ${{ secrets.CSO_CLIENT_SECRET_PROD }}
gcp_project_number: ${{ secrets.GCP_PROJECT_NUMBER_PROD }}
with:
gcp-project-id: ${{ vars.GCP_PROJECT_ID_PROD }}
gcp-project: ${{ vars.GCP_PROJECT_ID_PROD }}
gcp-region: ${{ vars.DEFAULT_GCP_REGION }}
environment: prod
dtro-image-name: ${{ vars.DTRO_IMAGE_NAME }}
dtro-image-tag: ${{ vars.DTRO_IMAGE_TAG }}
service-ui-image-name: ${{ vars.DTRO_SERVICE_UI_IMAGE_NAME }}
service-ui-image-tag: ${{ vars.DTRO_SERVICE_UI_IMAGE_TAG }}
run-build-push: true
run-deploy-CR-job: true
# run-apigee: false #TODO: Default value when no major endpoint or OAuth changes have been made
run-apigee: true
# deploy-production:
# name: Application - Deploy to Production
# uses: ./.github/workflows/deploy_resources.yml
# needs:
# - wait-for-approval
# secrets:
# workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER_PROD }}
# wip_service_account: ${{ secrets.WIP_SERVICE_ACCOUNT_PROD }}
# execution_service_account: ${{ secrets.EXECUTION_SERVICE_ACCOUNT_PROD }}
# service_ui_client_id: ${{ secrets.CSO_CLIENT_ID_PROD }}
# service_ui_client_secret: ${{ secrets.CSO_CLIENT_SECRET_PROD }}
# gcp_project_number: ${{ secrets.GCP_PROJECT_NUMBER_PROD }}
# with:
# gcp-project-id: ${{ vars.GCP_PROJECT_ID_PROD }}
# gcp-project: ${{ vars.GCP_PROJECT_ID_PROD }}
# gcp-region: ${{ vars.DEFAULT_GCP_REGION }}
# environment: prod
# dtro-image-name: ${{ vars.DTRO_IMAGE_NAME }}
# dtro-image-tag: ${{ vars.DTRO_IMAGE_TAG }}
# service-ui-image-name: ${{ vars.DTRO_SERVICE_UI_IMAGE_NAME }}
# service-ui-image-tag: ${{ vars.DTRO_SERVICE_UI_IMAGE_TAG }}
# run-build-push: true
# run-deploy-CR-job: true
# # run-apigee: false #TODO: Default value when no major endpoint or OAuth changes have been made
# run-apigee: true

0 comments on commit 1aa4033

Please sign in to comment.