Browse Source
* CLDC-4236: remove workflow dispatch from prod pipeline
* CLDC-4236: update review pipeline flow with concurrency group, correct ref and inputs
* CLDC-4236: test copy change
* CLDC-4236: fix aws creds step
* CLDC-4236: set permissions
* Revert "CLDC-4236: test copy change"
This reverts commit c0d50b1e4b.
* empty commit
* CLDC-4136: change check if review app exists to check if review app deployment started to avoid not deploying changes made during first deployment
* CLDC-4136: don't allow manual teardown to avoid unnecessary edge cases
* CLDC-4236: add permissions to manual_review_code_pipeline.yml
pull/3194/head
4 changed files with 160 additions and 12 deletions
@ -1,29 +1,51 @@
|
||||
name: Manual review app code pipeline |
||||
name: Manual review app build and deploy |
||||
|
||||
concurrency: |
||||
group: review-${{ inputs.review_app_key }} |
||||
group: deploy-review${{ inputs.pr_number }} |
||||
|
||||
on: |
||||
workflow_dispatch: |
||||
inputs: |
||||
review_app_key: |
||||
pr_number: |
||||
required: true |
||||
type: string |
||||
description: "The review app ID to deploy code for." |
||||
description: "The PR number of the review app to deploy code for. Note: this is NOT the ticket number" |
||||
|
||||
permissions: {} |
||||
|
||||
defaults: |
||||
run: |
||||
shell: bash |
||||
|
||||
jobs: |
||||
get_pr_head_sha: |
||||
name: Get PR HEAD SHA |
||||
runs-on: ubuntu-latest |
||||
outputs: |
||||
pr_head_sha: ${{ steps.get_sha.outputs.pr_head_sha }} |
||||
steps: |
||||
- name: Get PR HEAD SHA |
||||
id: get_sha |
||||
uses: actions/github-script@v7 |
||||
with: |
||||
script: | |
||||
const { data: pr } = await github.rest.pulls.get({ |
||||
owner: context.repo.owner, |
||||
repo: context.repo.repo, |
||||
pull_number: parseInt('${{ inputs.pr_number }}'), |
||||
}); |
||||
core.setOutput('pr_head_sha', pr.head.sha); |
||||
|
||||
code: |
||||
name: Deploy review app code |
||||
needs: [get_pr_head_sha] |
||||
uses: ./.github/workflows/aws_deploy.yml |
||||
with: |
||||
aws_account_id: 837698168072 |
||||
aws_role_prefix: core-dev |
||||
aws_task_prefix: core-review-${{ inputs.review_app_key }} |
||||
concurrency_tag: ${{ inputs.review_app_key }} |
||||
aws_task_prefix: core-review-${{ inputs.pr_number }} |
||||
concurrency_tag: ${{ inputs.pr_number }} |
||||
environment: review |
||||
ref: ${{ needs.get_pr_head_sha.outputs.pr_head_sha }} |
||||
permissions: |
||||
id-token: write |
||||
|
||||
Loading…
Reference in new issue