Skip to content

Commit

Permalink
dont update redis passwords on migrate for web console (#1530)
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 authored Dec 6, 2024
1 parent fff6440 commit 5bf8605
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/aksapply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,39 +37,39 @@ jobs:
with:
fetch-depth: '2'
- name: 'Az login'
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply == 'true' }}
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply }}
uses: azure/login@v2
with:
client-id: ${{ env.ARM_CLIENT_ID }}
tenant-id: ${{ env.ARM_TENANT_ID }}
subscription-id: ${{ env.ARM_SUBSCRIPTION_ID }}
- name: Get GitHub Public IP
id: github_public_ip
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply == 'true' }}
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply }}
run: echo "ipv4=$(curl 'https://ifconfig.me/ip')" >> $GITHUB_OUTPUT
- name: Add GitHub IP to StorageAccount
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply == 'true' }}
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply }}
run: |
az storage account network-rule add \
--resource-group "${{ matrix.target.subscription }}-tfstate" \
--account-name "${{ matrix.target.subscription }}radixinfra" \
--ip-address ${{ steps.github_public_ip.outputs.ipv4 }} >/dev/null
- name: Add GitHub IP to KeyVault
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply == 'true' }}
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply }}
run: |
az keyvault network-rule add --name "radix-keyv-${{ matrix.target.name }}" \
--resource-group "common-${{ matrix.target.name }}" \
--ip-address ${{ steps.github_public_ip.outputs.ipv4 }} >/dev/null
- name: Lets sleep for 30 seconds for FW rule to complete
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply == 'true' }}
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply }}
run: sleep 30s
- name: Setup Terraform
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply == 'true' }}
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply }}
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 'latest'
- name: Terraform Apply
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply == 'true' }}
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply }}
id: apply
env:
ARM_USE_OIDC: true
Expand All @@ -78,14 +78,14 @@ jobs:
terraform -chdir="./terraform/subscriptions/${{ matrix.target.subscription }}/${{ matrix.target.name }}/pre-clusters" init
terraform -chdir="./terraform/subscriptions/${{ matrix.target.subscription }}/${{ matrix.target.name }}/pre-clusters" apply -auto-approve
- name: Revoke GitHub IP on StorageAccount
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply == 'true' }}
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply }}
run: |
az storage account network-rule remove \
--resource-group "${{ matrix.target.subscription }}-tfstate" \
--account-name "${{ matrix.target.subscription }}radixinfra" \
--ip-address ${{ steps.github_public_ip.outputs.ipv4 }} >/dev/null
- name: Revoke GitHub IP on KeyVault
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply == 'true' }}
if: ${{ github.ref == 'refs/heads/master' && inputs.terraformapply }}
run: |
az keyvault network-rule remove --name "radix-keyv-${{ matrix.target.name }}" \
--resource-group "common-${{ matrix.target.name }}" \
Expand Down

0 comments on commit 5bf8605

Please sign in to comment.