feat(dcellar-web-ui): introduce the migrate bucket feature #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: QA Deployment Scheduler | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
pre-check: | |
runs-on: ubuntu-latest | |
if: (contains(github.event.comment.body, '/e2e-deploy') || contains(github.event.comment.body, '/qa-deploy')) | |
outputs: | |
codeowners: ${{ steps.codeowners.outputs.content }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Read codeowners | |
id: codeowners | |
uses: juliangruber/read-file-action@v1 | |
with: | |
path: .github/CODEOWNERS | |
check-codeowners: | |
runs-on: ubuntu-latest | |
needs: [pre-check] | |
if: (!contains(needs.pre-check.outputs.codeowners, github.event.comment.user.login)) | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Create Version Comment | |
uses: peter-evans/create-or-update-comment@v2 | |
with: | |
issue-number: ${{ github.event.issue.number }} | |
comment-id: ${{ github.event.comment.id }} | |
body: | | |
++++++ | |
Deployment request denied. Please ensure you have the necessary permissions by contacting the project code owners. | |
reactions: rocket | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
dcellar-web-ui-e2e-deploy-with-qa: | |
needs: [pre-check] | |
if: (contains(needs.pre-check.outputs.codeowners, github.event.comment.user.login) && ((github.event.comment.body == '/e2e-deploy:dcellar-web-ui') || (github.event.comment.body == '/e2e-deploy-qa:dcellar-web-ui'))) | |
uses: node-real/dcellar/.github/workflows/dcellar-web-ui-e2e-cicd.yml@main | |
secrets: inherit | |
with: | |
app_name: dcellar-web-ui | |
env: qa | |
dcellar-web-ui-e2e-deploy-with-testnet: | |
needs: [pre-check] | |
if: (contains(needs.pre-check.outputs.codeowners, github.event.comment.user.login) && (github.event.comment.body == '/e2e-deploy-testnet:dcellar-web-ui')) | |
uses: node-real/dcellar/.github/workflows/dcellar-web-ui-e2e-cicd.yml@main | |
secrets: inherit | |
with: | |
app_name: dcellar-web-ui | |
env: testnet | |
dcellar-web-ui-e2e-deploy-with-mainnet: | |
needs: [pre-check] | |
if: (contains(needs.pre-check.outputs.codeowners, github.event.comment.user.login) && (github.event.comment.body == '/e2e-deploy-mainnet:dcellar-web-ui')) | |
uses: node-real/dcellar/.github/workflows/dcellar-web-ui-e2e-cicd.yml@main | |
secrets: inherit | |
with: | |
app_name: dcellar-web-ui | |
env: mainnet | |
dcellar-web-ui-qa-deploy: | |
needs: [pre-check] | |
if: (contains(needs.pre-check.outputs.codeowners, github.event.comment.user.login) && (github.event.comment.body == '/qa-deploy:dcellar-web-ui')) | |
uses: node-real/dcellar/.github/workflows/dcellar-web-ui-qa-cicd.yml@main | |
secrets: inherit | |
with: | |
app_name: dcellar-web-ui | |
env: qa |