Done.
Implement a workflow to bring up a temp demo external env
Implement a mechanism to bring up a separate public feature testing environment.
Purpose: demostrating that certain feature doesn't work to someone (e.g. an outside collaborator) without creating a VPN account for them.
1) Should be triggered in a PR by the label `status/feature_testing_public`.
2) Should be accessible without VPN but basic auth should be present.
.github/workflows/branch-deploy.yml
.github/workflows/branch-deploy.yml
diff --git a/.github/workflows/branch-deploy.yml b/.github/workflows/branch-deploy.yml
index b75bd5cfa50..996ba05da6e 100644
--- a/.github/workflows/branch-deploy.yml
+++ b/.github/workflows/branch-deploy.yml
@@ -1,20 +1,12 @@
 name: DeployFromBranch
 on:
   workflow_dispatch:
-    inputs:
-      public:
-          required: true
-          description: Will this environment be publicly available?
-          default: "no"
-      kafka-ui-password:
-        required: true
-        description: Password that will be used to login to branch env. If the env is not publicly accessible, this password will not be used.
-        default: ""
+
   pull_request:
     types: ['labeled']
 jobs:
   build:
-    if: ${{ github.event.label.name == 'status/feature_testing' }}
+    if: ${{ github.event.label.name == 'status/feature_testing' || github.event.label.name == 'status/feature_testing_public' }}
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
@@ -92,14 +84,14 @@ jobs:
         run: |
           cd kafka-ui-infra/aws-infrastructure4eks/argocd/scripts
           echo "Branch:${{ needs.build.outputs.tag }}"
-          ./kafka-ui-deployment-from-branch.sh ${{ needs.build.outputs.tag }} ${{ github.event.inputs.public }} ${{ github.event.inputs.kafka-ui-password }}
+          ./kafka-ui-deployment-from-branch.sh ${{ needs.build.outputs.tag }} ${{ github.event.label.name }} ${{ secrets.FEATURE_TESTING_UI_PASSWORD }}
           git config --global user.email "kafka-ui-infra@provectus.com"
           git config --global user.name "kafka-ui-infra"
           git add ../kafka-ui-from-branch/
           git commit -m "added env:${{ needs.build.outputs.deploy }}" && git push || true
 
       - name: make comment with private deployment link
-        if: ${{ github.event.inputs.public == 'no' }}
+        if: ${{ github.event.label.name == 'status/feature_testing' }}
         uses: peter-evans/create-or-update-comment@v1.4.5
         with:
           issue-number: ${{ github.event.pull_request.number }}
@@ -107,7 +99,7 @@ jobs:
             Custom deployment will be available at http://${{ needs.build.outputs.tag }}.internal.kafka-ui.provectus.io
 
       - name: make comment with public deployment link
-        if: ${{ github.event.inputs.public == 'yes' }}
+        if: ${{ github.event.label.name == 'status/feature_testing_public' }}
         uses: peter-evans/create-or-update-comment@v1.4.5
         with:
           issue-number: ${{ github.event.pull_request.number }}
