From a509c1356b66a97b28beb357283d2ee8c8a38cc3 Mon Sep 17 00:00:00 2001 From: Duje Begonja Date: Wed, 27 Sep 2023 08:31:27 +0200 Subject: [PATCH 1/2] remove basic auth --- deploy/helm/environments/mainnet/values.yaml.gotmpl | 5 ----- deploy/helm/radix-dapp-toolkit/values.yaml | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/deploy/helm/environments/mainnet/values.yaml.gotmpl b/deploy/helm/environments/mainnet/values.yaml.gotmpl index b7d06778..37658726 100644 --- a/deploy/helm/environments/mainnet/values.yaml.gotmpl +++ b/deploy/helm/environments/mainnet/values.yaml.gotmpl @@ -18,11 +18,6 @@ ingress: paths: - path: / pathType: Prefix - basic_auth: true - annotations: - nginx.ingress.kubernetes.io/auth-type: basic - nginx.ingress.kubernetes.io/auth-secret: radix-dapp-toolkit-basic-auth - nginx.ingress.kubernetes.io/auth-realm: 'Auth Required - Mainnet' alertmanager: env: "mainnet" diff --git a/deploy/helm/radix-dapp-toolkit/values.yaml b/deploy/helm/radix-dapp-toolkit/values.yaml index 92bf4d41..5be9ae06 100644 --- a/deploy/helm/radix-dapp-toolkit/values.yaml +++ b/deploy/helm/radix-dapp-toolkit/values.yaml @@ -32,6 +32,7 @@ ingress: annotations: {} hosts: [] tls: [] + basic_auth: false resources: limits: From 6e370c7afa506e86dc2b6fae9e4a27ea9b377f3f Mon Sep 17 00:00:00 2001 From: Dawid Sowa Date: Wed, 27 Sep 2023 16:19:34 +0200 Subject: [PATCH 2/2] ci: allow mainnet deployment --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cb097538..cfedb836 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,7 @@ on: default: Stokenet type: choice options: + - Mainnet - Stokenet push: @@ -143,7 +144,7 @@ jobs: - name: Define network name id: network_name_step run: | - if [ "${{ github.event_name}}" = 'release' -a ${{!github.event.release.prerelease}} ]; then + if [ "${{ github.event_name}}" = 'release' -a ${{!github.event.release.prerelease}} ] || [ ${{github.event_name }} = 'workflow_dispatch' -a "${{github.event.inputs.ENVIRONMENT_NAME}}" = 'Mainnet' ]; then echo "is_public=true" >> $GITHUB_OUTPUT echo "network_name=Mainnet" >> $GITHUB_OUTPUT elif [ ${{github.event_name }} = 'workflow_dispatch' -a "${{github.event.inputs.ENVIRONMENT_NAME}}" = 'Stokenet' ]; then @@ -439,7 +440,7 @@ jobs: HELM_GH_PASS: ${{ secrets.HELM_GH_PASS }} deploy-mainnet: - if: github.event_name == 'release' && !github.event.release.prerelease + if: github.event_name == 'release' && !github.event.release.prerelease || ( github.event.inputs.ENVIRONMENT_NAME == 'Mainnet' && github.event_name == 'workflow_dispatch' ) runs-on: ubuntu-latest needs: - push-docker-image