diff --git a/.github/workflows/comment-deploy-scheduler.yml b/.github/workflows/comment-deploy-scheduler.yml index 11b5cd46..e9a98728 100644 --- a/.github/workflows/comment-deploy-scheduler.yml +++ b/.github/workflows/comment-deploy-scheduler.yml @@ -7,7 +7,7 @@ on: jobs: pre-check: runs-on: ubuntu-latest - if: (contains(github.event.comment.body, '/e2e-deploy') || contains(github.event.comment.body, '/qa-deploy')) + if: (contains(github.event.comment.body, '/e2e-deploy') || contains(github.event.comment.body, '/new-e2e-deploy') || contains(github.event.comment.body, '/qa-deploy')) outputs: codeowners: ${{ steps.codeowners.outputs.content }} steps: @@ -60,6 +60,14 @@ jobs: with: app_name: dcellar-web-ui env: mainnet + dcellar-web-ui-new-e2e-deploy-with-qa: + needs: [pre-check] + if: (contains(needs.pre-check.outputs.codeowners, github.event.comment.user.login) && (github.event.comment.body == '/new-e2e-deploy-qa:dcellar-web-ui')) + uses: node-real/dcellar-fe/.github/workflows/dcellar-web-ui-new-e2e-cicd.yml@main + secrets: inherit + with: + app_name: dcellar-web-ui + env: qa 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')) diff --git a/.github/workflows/dcellar-web-ui-new-e2e-cicd.yml b/.github/workflows/dcellar-web-ui-new-e2e-cicd.yml new file mode 100644 index 00000000..5098d7de --- /dev/null +++ b/.github/workflows/dcellar-web-ui-new-e2e-cicd.yml @@ -0,0 +1,23 @@ +name: dcellar-web-ui new e2e CICD + +on: + workflow_call: + inputs: + app_name: + description: 'App name in GitOps is used for branch naming only.' + type: string + required: true + default: 'dcellar-web-ui' + env: + description: 'Specify the deployment environment' + type: string + required: true + default: 'qa' + +jobs: + CICD: + uses: node-real/github-workflows/.github/workflows/dcellar-web-ui-new-e2e-cicd.yml@feat/opt-fe/devin + secrets: inherit + with: + app_name: ${{ inputs.app_name }} + env: ${{ inputs.env }} \ No newline at end of file