diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca5be7d0cb..6968c77348 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -420,25 +420,25 @@ jobs: with: creds: ${{ secrets.AZURE_CREDENTIALS }} - - uses: DfE-Digital/keyvault-yaml-secret@v1 - id: keyvault-yaml-secret - with: - keyvault: ${{ secrets.KEY_VAULT}} - secret: SE-INFRA-SECRETS - key: SLACK-WEBHOOK , SLACK-RELEASE-NOTE-WEBHOOK , PAAS-USERNAME , PAAS-PASSWORD - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # - uses: DfE-Digital/keyvault-yaml-secret@v1 + # id: keyvault-yaml-secret + # with: + # keyvault: ${{ secrets.KEY_VAULT}} + # secret: SE-INFRA-SECRETS + # key: SLACK-WEBHOOK , SLACK-RELEASE-NOTE-WEBHOOK , PAAS-USERNAME , PAAS-PASSWORD + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Login to Cloud Foundry - if: matrix.environment == 'Review' - run: cf login -a api.london.cloud.service.gov.uk -u ${{steps.keyvault-yaml-secret.outputs.PAAS-USERNAME}} -p "${{steps.keyvault-yaml-secret.outputs.PAAS-PASSWORD}}" -s get-into-teaching + # - name: Login to Cloud Foundry + # if: matrix.environment == 'Review' + # run: cf login -a api.london.cloud.service.gov.uk -u ${{steps.keyvault-yaml-secret.outputs.PAAS-USERNAME}} -p "${{steps.keyvault-yaml-secret.outputs.PAAS-PASSWORD}}" -s get-into-teaching - - name: Get Static Route - if: matrix.environment == 'Review' - run: | - cf delete-orphaned-routes -f - STATIC_ROUTE=$( ${GITHUB_WORKSPACE}/script/get_next_mapping.sh ${{env.REVIEW_APPLICATION}}-${{github.event.number}} ) - echo "STATIC_ROUTE=${STATIC_ROUTE}" >> $GITHUB_ENV + # - name: Get Static Route + # if: matrix.environment == 'Review' + # run: | + # cf delete-orphaned-routes -f + # STATIC_ROUTE=$( ${GITHUB_WORKSPACE}/script/get_next_mapping.sh ${{env.REVIEW_APPLICATION}}-${{github.event.number}} ) + # echo "STATIC_ROUTE=${STATIC_ROUTE}" >> $GITHUB_ENV # - name: Trigger Deployment to ${{matrix.environment}} # if: matrix.environment == 'Review' @@ -454,7 +454,7 @@ jobs: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # - name: Trigger Deployment to ${{matrix.environment}}_aks - # if: matrix.environment == 'Review' + # if: matrix.environment == 'review_aks' # uses: ./.github/workflows/actions/deploy_v2 # with: # environment: ${{ github.event.inputs.environment }} @@ -463,7 +463,7 @@ jobs: # pr: ${{github.event.number}} # - name: Trigger Deployment to ${{matrix.environment}} - # if: matrix.environment != 'Review' + # if: matrix.environment != 'Review' AND (!contains(matrix.environment,'aks')) # uses: ./.github/workflows/actions/deploy # with: # environment: ${{matrix.environment}} @@ -474,7 +474,7 @@ jobs: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Trigger Deployment to ${{matrix.environment}} - if: matrix.environment != 'Review_aks' + if: (matrix.environment != 'review_aks') AND (contains(matrix.environment,'aks')) uses: ./.github/workflows/actions/deploy_v2 with: environment: ${{ github.event.inputs.environment }}