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: |
concurrency: |
||||||
group: review-${{ inputs.review_app_key }} |
group: deploy-review${{ inputs.pr_number }} |
||||||
|
|
||||||
on: |
on: |
||||||
workflow_dispatch: |
workflow_dispatch: |
||||||
inputs: |
inputs: |
||||||
review_app_key: |
pr_number: |
||||||
required: true |
required: true |
||||||
type: string |
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: |
defaults: |
||||||
run: |
run: |
||||||
shell: bash |
shell: bash |
||||||
|
|
||||||
jobs: |
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: |
code: |
||||||
name: Deploy review app code |
name: Deploy review app code |
||||||
|
needs: [get_pr_head_sha] |
||||||
uses: ./.github/workflows/aws_deploy.yml |
uses: ./.github/workflows/aws_deploy.yml |
||||||
with: |
with: |
||||||
aws_account_id: 837698168072 |
aws_account_id: 837698168072 |
||||||
aws_role_prefix: core-dev |
aws_role_prefix: core-dev |
||||||
aws_task_prefix: core-review-${{ inputs.review_app_key }} |
aws_task_prefix: core-review-${{ inputs.pr_number }} |
||||||
concurrency_tag: ${{ inputs.review_app_key }} |
concurrency_tag: ${{ inputs.pr_number }} |
||||||
environment: review |
environment: review |
||||||
|
ref: ${{ needs.get_pr_head_sha.outputs.pr_head_sha }} |
||||||
permissions: |
permissions: |
||||||
id-token: write |
id-token: write |
||||||
|
|||||||
Loading…
Reference in new issue