From 70b8719b7fa7877b0d2a85cecf36c529a30fb48a Mon Sep 17 00:00:00 2001 From: Ieuan Byers Date: Sat, 5 Oct 2024 11:43:54 +0100 Subject: [PATCH] Temp disable autoshutdown scripts --- .github/workflows/aks-auto-shutdown.yaml | 58 ++++----- .github/workflows/aks-auto-start.yaml | 74 +++++------ .../workflows/appgateway-auto-shutdown.yaml | 116 ++++++++--------- .github/workflows/appgateway-auto-start.yaml | 118 +++++++++--------- .../flexibleserver-auto-shutdown.yaml | 116 ++++++++--------- .../workflows/flexibleserver-auto-start.yaml | 116 ++++++++--------- .github/workflows/sqlmi-auto-shutdown.yaml | 116 ++++++++--------- .github/workflows/sqlmi-auto-start.yaml | 116 ++++++++--------- .../workflows/storage-sftp-auto-disable.yaml | 116 ++++++++--------- .../workflows/storage-sftp-auto-enable.yaml | 116 ++++++++--------- .github/workflows/vm-auto-shutdown.yaml | 60 ++++----- .github/workflows/vm-auto-start.yaml | 60 ++++----- 12 files changed, 591 insertions(+), 591 deletions(-) diff --git a/.github/workflows/aks-auto-shutdown.yaml b/.github/workflows/aks-auto-shutdown.yaml index 72963e03..19fc0df3 100644 --- a/.github/workflows/aks-auto-shutdown.yaml +++ b/.github/workflows/aks-auto-shutdown.yaml @@ -1,34 +1,34 @@ -name: aks-auto-shutdown -on: - workflow_dispatch: - schedule: - - cron: '0 19,22 * * *' # Every day at 20:00 and 23:00 BST -permissions: - id-token: write -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 +# name: aks-auto-shutdown +# on: +# workflow_dispatch: +# schedule: +# - cron: '0 19,22 * * *' # Every day at 20:00 and 23:00 BST +# permissions: +# id-token: write +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@v4 - - name: 'Az CLI login' - uses: azure/login@v2 - with: - client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown - tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET - allow-no-subscriptions: true +# - name: 'Az CLI login' +# uses: azure/login@v2 +# with: +# client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown +# tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET +# allow-no-subscriptions: true - - name: AKS Auto Shutdown - run: ./scripts/aks/auto-start-stop.sh stop - env: - DEV_ENV: ${{ secrets.DEV_ENV }} +# - name: AKS Auto Shutdown +# run: ./scripts/aks/auto-start-stop.sh stop +# env: +# DEV_ENV: ${{ secrets.DEV_ENV }} - - name: Output log file - run: ./scripts/common/log-output.sh +# - name: Output log file +# run: ./scripts/common/log-output.sh - - name: Wait for clusters to stop - run: sleep 600 +# - name: Wait for clusters to stop +# run: sleep 600 - - name: AKS Auto Shutdown status check - run: ./scripts/aks/auto-shutdown-status.sh stop ${{ secrets.REGISTRYSLACKWEBHOOK }} +# - name: AKS Auto Shutdown status check +# run: ./scripts/aks/auto-shutdown-status.sh stop ${{ secrets.REGISTRYSLACKWEBHOOK }} diff --git a/.github/workflows/aks-auto-start.yaml b/.github/workflows/aks-auto-start.yaml index a77aa03d..b2da242b 100644 --- a/.github/workflows/aks-auto-start.yaml +++ b/.github/workflows/aks-auto-start.yaml @@ -1,41 +1,41 @@ -name: aks-auto-start -on: - workflow_dispatch: - inputs: - DRYRUN: - options: - - "false" - - "true" - schedule: - - cron: '30 5 * * 1-5' # Every weekday at 6:30am BST -env: - DRYRUN: ${{ inputs.DRYRUN }} -permissions: - id-token: write -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 +# name: aks-auto-start +# on: +# workflow_dispatch: +# inputs: +# DRYRUN: +# options: +# - "false" +# - "true" +# schedule: +# - cron: '30 5 * * 1-5' # Every weekday at 6:30am BST +# env: +# DRYRUN: ${{ inputs.DRYRUN }} +# permissions: +# id-token: write +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@v4 - - name: 'Az CLI login' - uses: azure/login@v2 - with: - client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown - tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET - allow-no-subscriptions: true - - - name: AKS Auto Start - run: ./scripts/aks/auto-start-stop.sh start - env: - DEV_ENV: ${{ secrets.DEV_ENV }} +# - name: 'Az CLI login' +# uses: azure/login@v2 +# with: +# client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown +# tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET +# allow-no-subscriptions: true - - name: Output log file - run: ./scripts/common/log-output.sh +# - name: AKS Auto Start +# run: ./scripts/aks/auto-start-stop.sh start +# env: +# DEV_ENV: ${{ secrets.DEV_ENV }} - - name: Wait for cluster to start - run: sleep 600 +# - name: Output log file +# run: ./scripts/common/log-output.sh - - name: AKS Auto Shutdown status check - run: ./scripts/aks/auto-shutdown-status.sh start ${{ secrets.REGISTRYSLACKWEBHOOK }} \ No newline at end of file +# - name: Wait for cluster to start +# run: sleep 600 + +# - name: AKS Auto Shutdown status check +# run: ./scripts/aks/auto-shutdown-status.sh start ${{ secrets.REGISTRYSLACKWEBHOOK }} diff --git a/.github/workflows/appgateway-auto-shutdown.yaml b/.github/workflows/appgateway-auto-shutdown.yaml index 87bbaeb0..2d3cdea5 100644 --- a/.github/workflows/appgateway-auto-shutdown.yaml +++ b/.github/workflows/appgateway-auto-shutdown.yaml @@ -1,66 +1,66 @@ -name: AppGateway-auto-shutdown -on: - workflow_dispatch: - schedule: - - cron: '0 19,22 * * *' # Every day at 20:00 and 23:00 BST -env: - DEV_ENV: ${{ secrets.DEV_ENV }} -permissions: - id-token: write -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: 'Az CLI login' - uses: azure/login@v2 - with: - client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown - tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET - allow-no-subscriptions: true - - name: Staging - App Gateway Auto Shutdown - run: ./scripts/appgateway/auto-start-stop.sh stop staging - env: - DEV_ENV: ${{ env.DEV_ENV }} +# name: AppGateway-auto-shutdown +# on: +# workflow_dispatch: +# schedule: +# - cron: '0 19,22 * * *' # Every day at 20:00 and 23:00 BST +# env: +# DEV_ENV: ${{ secrets.DEV_ENV }} +# permissions: +# id-token: write +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@v4 +# - name: 'Az CLI login' +# uses: azure/login@v2 +# with: +# client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown +# tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET +# allow-no-subscriptions: true +# - name: Staging - App Gateway Auto Shutdown +# run: ./scripts/appgateway/auto-start-stop.sh stop staging +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Testing - App Gateway Auto Shutdown - run: ./scripts/appgateway/auto-start-stop.sh stop testing - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Testing - App Gateway Auto Shutdown +# run: ./scripts/appgateway/auto-start-stop.sh stop testing +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Demo - App Gateway Auto Shutdown - run: ./scripts/appgateway/auto-start-stop.sh stop demo - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Demo - App Gateway Auto Shutdown +# run: ./scripts/appgateway/auto-start-stop.sh stop demo +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Development - App Gateway Auto Shutdown - run: ./scripts/appgateway/auto-start-stop.sh stop development - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Development - App Gateway Auto Shutdown +# run: ./scripts/appgateway/auto-start-stop.sh stop development +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Sandbox - App Gateway Auto Shutdown - run: ./scripts/appgateway/auto-start-stop.sh stop sandbox - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Sandbox - App Gateway Auto Shutdown +# run: ./scripts/appgateway/auto-start-stop.sh stop sandbox +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: ITHC - App Gateway Auto Shutdown - run: ./scripts/appgateway/auto-start-stop.sh stop ithc - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: ITHC - App Gateway Auto Shutdown +# run: ./scripts/appgateway/auto-start-stop.sh stop ithc +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Untagged - App Gateway Auto Shutdown - run: ./scripts/appgateway/auto-start-stop.sh stop untagged - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Untagged - App Gateway Auto Shutdown +# run: ./scripts/appgateway/auto-start-stop.sh stop untagged +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Output log file - run: ./scripts/common/log-output.sh +# - name: Output log file +# run: ./scripts/common/log-output.sh - - name: Wait for App Gateways to stop - if: env.DEV_ENV != 'true' - run: sleep 300 - - - name: App Gateway Auto Shutdown status check - if: env.DEV_ENV != 'true' - run: ./scripts/appgateway/appgw_status.sh stop ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} +# - name: Wait for App Gateways to stop +# if: env.DEV_ENV != 'true' +# run: sleep 300 + +# - name: App Gateway Auto Shutdown status check +# if: env.DEV_ENV != 'true' +# run: ./scripts/appgateway/appgw_status.sh stop ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} diff --git a/.github/workflows/appgateway-auto-start.yaml b/.github/workflows/appgateway-auto-start.yaml index 2fc6c270..5f264310 100644 --- a/.github/workflows/appgateway-auto-start.yaml +++ b/.github/workflows/appgateway-auto-start.yaml @@ -1,66 +1,66 @@ -name: AppGateway-auto-start -on: - workflow_dispatch: - schedule: - - cron: '30 5 * * 1-5' # Every weekday at 6:30am BST -env: - DEV_ENV: ${{ secrets.DEV_ENV }} -permissions: - id-token: write -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: 'Az CLI login' - uses: azure/login@v2 - with: - client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown - tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET - allow-no-subscriptions: true - - name: Staging - App Gateway Auto Shutdown - run: ./scripts/appgateway/auto-start-stop.sh start staging - env: - DEV_ENV: ${{ env.DEV_ENV }} +# name: AppGateway-auto-start +# on: +# workflow_dispatch: +# schedule: +# - cron: '30 5 * * 1-5' # Every weekday at 6:30am BST +# env: +# DEV_ENV: ${{ secrets.DEV_ENV }} +# permissions: +# id-token: write +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@v4 +# - name: 'Az CLI login' +# uses: azure/login@v2 +# with: +# client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown +# tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET +# allow-no-subscriptions: true +# - name: Staging - App Gateway Auto Shutdown +# run: ./scripts/appgateway/auto-start-stop.sh start staging +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Testing - App Gateway Auto Shutdown - run: ./scripts/appgateway/auto-start-stop.sh start testing - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Testing - App Gateway Auto Shutdown +# run: ./scripts/appgateway/auto-start-stop.sh start testing +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Demo - App Gateway Auto Shutdown - run: ./scripts/appgateway/auto-start-stop.sh start demo - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Demo - App Gateway Auto Shutdown +# run: ./scripts/appgateway/auto-start-stop.sh start demo +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Development - App Gateway Auto Shutdown - run: ./scripts/appgateway/auto-start-stop.sh start development - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Development - App Gateway Auto Shutdown +# run: ./scripts/appgateway/auto-start-stop.sh start development +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Sandbox - App Gateway Auto Shutdown - run: ./scripts/appgateway/auto-start-stop.sh start sandbox - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Sandbox - App Gateway Auto Shutdown +# run: ./scripts/appgateway/auto-start-stop.sh start sandbox +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: ITHC - App Gateway Auto Shutdown - run: ./scripts/appgateway/auto-start-stop.sh start ithc - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: ITHC - App Gateway Auto Shutdown +# run: ./scripts/appgateway/auto-start-stop.sh start ithc +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Untagged - App Gateway Auto Shutdown - run: ./scripts/appgateway/auto-start-stop.sh start untagged - env: - DEV_ENV: ${{ env.DEV_ENV }} - - - name: Output log file - run: ./scripts/common/log-output.sh +# - name: Untagged - App Gateway Auto Shutdown +# run: ./scripts/appgateway/auto-start-stop.sh start untagged +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Wait for App Gateways to start - if: env.DEV_ENV != 'true' - run: sleep 300 - - - name: App Gateway Auto start status check - if: env.DEV_ENV != 'true' - run: ./scripts/appgateway/appgw_status.sh start ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} +# - name: Output log file +# run: ./scripts/common/log-output.sh + +# - name: Wait for App Gateways to start +# if: env.DEV_ENV != 'true' +# run: sleep 300 + +# - name: App Gateway Auto start status check +# if: env.DEV_ENV != 'true' +# run: ./scripts/appgateway/appgw_status.sh start ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} diff --git a/.github/workflows/flexibleserver-auto-shutdown.yaml b/.github/workflows/flexibleserver-auto-shutdown.yaml index a68286cd..5890bfe9 100644 --- a/.github/workflows/flexibleserver-auto-shutdown.yaml +++ b/.github/workflows/flexibleserver-auto-shutdown.yaml @@ -1,67 +1,67 @@ -name: flexible-server-auto-shutdown -on: - workflow_dispatch: - schedule: - - cron: '0 19 * * *' # Every day at 8pm BST -env: - DEV_ENV: ${{ secrets.DEV_ENV }} -permissions: - id-token: write -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: 'Az CLI login' - uses: azure/login@v2 - with: - client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown - tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET - allow-no-subscriptions: true +# name: flexible-server-auto-shutdown +# on: +# workflow_dispatch: +# schedule: +# - cron: '0 19 * * *' # Every day at 8pm BST +# env: +# DEV_ENV: ${{ secrets.DEV_ENV }} +# permissions: +# id-token: write +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@v4 +# - name: 'Az CLI login' +# uses: azure/login@v2 +# with: +# client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown +# tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET +# allow-no-subscriptions: true - - name: Staging - Postgres Flexible server Auto Stop - run: ./scripts/flexible-server/auto-start-stop.sh stop staging - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Staging - Postgres Flexible server Auto Stop +# run: ./scripts/flexible-server/auto-start-stop.sh stop staging +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Test - Postgres Flexible server Auto Stop - run: ./scripts/flexible-server/auto-start-stop.sh stop testing - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Test - Postgres Flexible server Auto Stop +# run: ./scripts/flexible-server/auto-start-stop.sh stop testing +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Demo - Postgres Flexible server Auto Stop - run: ./scripts/flexible-server/auto-start-stop.sh stop demo - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Demo - Postgres Flexible server Auto Stop +# run: ./scripts/flexible-server/auto-start-stop.sh stop demo +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Development - Postgres Flexible server Auto Stop - run: ./scripts/flexible-server/auto-start-stop.sh stop development - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Development - Postgres Flexible server Auto Stop +# run: ./scripts/flexible-server/auto-start-stop.sh stop development +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Sandbox - Postgres Flexible server Auto Stop - run: ./scripts/flexible-server/auto-start-stop.sh stop sandbox - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Sandbox - Postgres Flexible server Auto Stop +# run: ./scripts/flexible-server/auto-start-stop.sh stop sandbox +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: ITHC - Postgres Flexible server Auto Stop - run: ./scripts/flexible-server/auto-start-stop.sh stop ithc - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: ITHC - Postgres Flexible server Auto Stop +# run: ./scripts/flexible-server/auto-start-stop.sh stop ithc +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Untagged - Postgres Flexible server Auto Stop - run: ./scripts/flexible-server/auto-start-stop.sh stop untagged - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Untagged - Postgres Flexible server Auto Stop +# run: ./scripts/flexible-server/auto-start-stop.sh stop untagged +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Output log file - run: ./scripts/common/log-output.sh +# - name: Output log file +# run: ./scripts/common/log-output.sh - - name: Wait for Flexible servers to start - if: env.DEV_ENV != 'true' - run: sleep 600 - - - name: Postgres Flexible server status check - if: env.DEV_ENV != 'true' - run: ./scripts/flexible-server/flexserverstatus.sh stop ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} \ No newline at end of file +# - name: Wait for Flexible servers to start +# if: env.DEV_ENV != 'true' +# run: sleep 600 + +# - name: Postgres Flexible server status check +# if: env.DEV_ENV != 'true' +# run: ./scripts/flexible-server/flexserverstatus.sh stop ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} diff --git a/.github/workflows/flexibleserver-auto-start.yaml b/.github/workflows/flexibleserver-auto-start.yaml index 7f57f92a..c8f45742 100644 --- a/.github/workflows/flexibleserver-auto-start.yaml +++ b/.github/workflows/flexibleserver-auto-start.yaml @@ -1,67 +1,67 @@ -name: flexible-server-auto-start -on: - workflow_dispatch: - schedule: - - cron: '30 5 * * 1-5' # Every weekday at 6:30am BST -env: - DEV_ENV: ${{ secrets.DEV_ENV }} -permissions: - id-token: write -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: 'Az CLI login' - uses: azure/login@v2 - with: - client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown - tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET - allow-no-subscriptions: true +# name: flexible-server-auto-start +# on: +# workflow_dispatch: +# schedule: +# - cron: '30 5 * * 1-5' # Every weekday at 6:30am BST +# env: +# DEV_ENV: ${{ secrets.DEV_ENV }} +# permissions: +# id-token: write +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@v4 +# - name: 'Az CLI login' +# uses: azure/login@v2 +# with: +# client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown +# tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET +# allow-no-subscriptions: true - - name: Staging - Postgres Flexible server Auto Start - run: ./scripts/flexible-server/auto-start-stop.sh start staging - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Staging - Postgres Flexible server Auto Start +# run: ./scripts/flexible-server/auto-start-stop.sh start staging +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Test - Postgres Flexible server Auto Start - run: ./scripts/flexible-server/auto-start-stop.sh start testing - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Test - Postgres Flexible server Auto Start +# run: ./scripts/flexible-server/auto-start-stop.sh start testing +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Demo - Postgres Flexible server Auto Start - run: ./scripts/flexible-server/auto-start-stop.sh start demo - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Demo - Postgres Flexible server Auto Start +# run: ./scripts/flexible-server/auto-start-stop.sh start demo +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Development - Postgres Flexible server Auto Start - run: ./scripts/flexible-server/auto-start-stop.sh start development - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Development - Postgres Flexible server Auto Start +# run: ./scripts/flexible-server/auto-start-stop.sh start development +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Sandbox - Postgres Flexible server Auto Start - run: ./scripts/flexible-server/auto-start-stop.sh start sandbox - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Sandbox - Postgres Flexible server Auto Start +# run: ./scripts/flexible-server/auto-start-stop.sh start sandbox +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: ITHC - Postgres Flexible server Auto Start - run: ./scripts/flexible-server/auto-start-stop.sh start ithc - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: ITHC - Postgres Flexible server Auto Start +# run: ./scripts/flexible-server/auto-start-stop.sh start ithc +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Untagged - Postgres Flexible server Auto Start - run: ./scripts/flexible-server/auto-start-stop.sh start untagged - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Untagged - Postgres Flexible server Auto Start +# run: ./scripts/flexible-server/auto-start-stop.sh start untagged +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Output log file - run: ./scripts/common/log-output.sh +# - name: Output log file +# run: ./scripts/common/log-output.sh - - name: Wait for Flexible servers to start - if: env.DEV_ENV != 'true' - run: sleep 600 - - - name: Postgres Flexible server status check - if: env.DEV_ENV != 'true' - run: ./scripts/flexible-server/flexserverstatus.sh start ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} \ No newline at end of file +# - name: Wait for Flexible servers to start +# if: env.DEV_ENV != 'true' +# run: sleep 600 + +# - name: Postgres Flexible server status check +# if: env.DEV_ENV != 'true' +# run: ./scripts/flexible-server/flexserverstatus.sh start ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} diff --git a/.github/workflows/sqlmi-auto-shutdown.yaml b/.github/workflows/sqlmi-auto-shutdown.yaml index b66b810e..5371f76d 100644 --- a/.github/workflows/sqlmi-auto-shutdown.yaml +++ b/.github/workflows/sqlmi-auto-shutdown.yaml @@ -1,66 +1,66 @@ -name: sql-managed-instance-auto-shutdown -on: - workflow_dispatch: - schedule: - - cron: '0 19 * * *' # Every day at 8pm BST -env: - DEV_ENV: ${{ secrets.DEV_ENV }} -permissions: - id-token: write -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: 'Az CLI login' - uses: azure/login@v2 - with: - client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown - tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET - allow-no-subscriptions: true - - name: Staging - Sql Managed Instance Auto Shutdown - run: ./scripts/sqlmi/auto-start-stop.sh stop staging - env: - DEV_ENV: ${{ env.DEV_ENV }} +# name: sql-managed-instance-auto-shutdown +# on: +# workflow_dispatch: +# schedule: +# - cron: '0 19 * * *' # Every day at 8pm BST +# env: +# DEV_ENV: ${{ secrets.DEV_ENV }} +# permissions: +# id-token: write +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@v4 +# - name: 'Az CLI login' +# uses: azure/login@v2 +# with: +# client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown +# tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET +# allow-no-subscriptions: true +# - name: Staging - Sql Managed Instance Auto Shutdown +# run: ./scripts/sqlmi/auto-start-stop.sh stop staging +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Testing - Sql Managed Instance Auto Shutdown - run: ./scripts/sqlmi/auto-start-stop.sh stop testing - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Testing - Sql Managed Instance Auto Shutdown +# run: ./scripts/sqlmi/auto-start-stop.sh stop testing +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Demo - Sql Managed Instance Auto Shutdown - run: ./scripts/sqlmi/auto-start-stop.sh stop demo - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Demo - Sql Managed Instance Auto Shutdown +# run: ./scripts/sqlmi/auto-start-stop.sh stop demo +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Development - Sql Managed Instance Auto Shutdown - run: ./scripts/sqlmi/auto-start-stop.sh stop development - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Development - Sql Managed Instance Auto Shutdown +# run: ./scripts/sqlmi/auto-start-stop.sh stop development +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Sandbox - Sql Managed Instance Auto Shutdown - run: ./scripts/sqlmi/auto-start-stop.sh stop sandbox - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Sandbox - Sql Managed Instance Auto Shutdown +# run: ./scripts/sqlmi/auto-start-stop.sh stop sandbox +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: ITHC - Sql Managed Instance Auto Shutdown - run: ./scripts/sqlmi/auto-start-stop.sh stop ithc - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: ITHC - Sql Managed Instance Auto Shutdown +# run: ./scripts/sqlmi/auto-start-stop.sh stop ithc +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Untagged - Sql Managed Instance Auto Shutdown - run: ./scripts/sqlmi/auto-start-stop.sh stop untagged - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Untagged - Sql Managed Instance Auto Shutdown +# run: ./scripts/sqlmi/auto-start-stop.sh stop untagged +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Output log file - run: ./scripts/common/log-output.sh +# - name: Output log file +# run: ./scripts/common/log-output.sh - - name: Wait for Sql Managed Instance to stop - if: env.DEV_ENV != 'true' - run: sleep 600 - - - name: Sql Managed Instance status check - if: env.DEV_ENV != 'true' - run: ./scripts/sqlmi/sqlmistatus.sh stop ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} +# - name: Wait for Sql Managed Instance to stop +# if: env.DEV_ENV != 'true' +# run: sleep 600 + +# - name: Sql Managed Instance status check +# if: env.DEV_ENV != 'true' +# run: ./scripts/sqlmi/sqlmistatus.sh stop ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} diff --git a/.github/workflows/sqlmi-auto-start.yaml b/.github/workflows/sqlmi-auto-start.yaml index 950326b2..e133671a 100644 --- a/.github/workflows/sqlmi-auto-start.yaml +++ b/.github/workflows/sqlmi-auto-start.yaml @@ -1,66 +1,66 @@ -name: sql-managed-instance-auto-start -on: - workflow_dispatch: - schedule: - - cron: '30 5 * * 1-5' # Every weekday at 6:30am BST -env: - DEV_ENV: ${{ secrets.DEV_ENV }} -permissions: - id-token: write -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: 'Az CLI login' - uses: azure/login@v2 - with: - client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown - tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET - allow-no-subscriptions: true - - name: Staging - Sql Managed Instance Auto Start - run: ./scripts/sqlmi/auto-start-stop.sh start staging - env: - DEV_ENV: ${{ env.DEV_ENV }} +# name: sql-managed-instance-auto-start +# on: +# workflow_dispatch: +# schedule: +# - cron: '30 5 * * 1-5' # Every weekday at 6:30am BST +# env: +# DEV_ENV: ${{ secrets.DEV_ENV }} +# permissions: +# id-token: write +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@v4 +# - name: 'Az CLI login' +# uses: azure/login@v2 +# with: +# client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown +# tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET +# allow-no-subscriptions: true +# - name: Staging - Sql Managed Instance Auto Start +# run: ./scripts/sqlmi/auto-start-stop.sh start staging +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Testing - Sql Managed Instance Auto Start - run: ./scripts/sqlmi/auto-start-stop.sh start testing - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Testing - Sql Managed Instance Auto Start +# run: ./scripts/sqlmi/auto-start-stop.sh start testing +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Demo - Sql Managed Instance Auto Start - run: ./scripts/sqlmi/auto-start-stop.sh start demo - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Demo - Sql Managed Instance Auto Start +# run: ./scripts/sqlmi/auto-start-stop.sh start demo +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Development - Sql Managed Instance Auto Start - run: ./scripts/sqlmi/auto-start-stop.sh start development - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Development - Sql Managed Instance Auto Start +# run: ./scripts/sqlmi/auto-start-stop.sh start development +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Sandbox - Sql Managed Instance Auto Start - run: ./scripts/sqlmi/auto-start-stop.sh start sandbox - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Sandbox - Sql Managed Instance Auto Start +# run: ./scripts/sqlmi/auto-start-stop.sh start sandbox +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: ITHC - Sql Managed Instance Auto Start - run: ./scripts/sqlmi/auto-start-stop.sh start ithc - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: ITHC - Sql Managed Instance Auto Start +# run: ./scripts/sqlmi/auto-start-stop.sh start ithc +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Untagged - Sql Managed Instance Auto Start - run: ./scripts/sqlmi/auto-start-stop.sh start untagged - env: - DEV_ENV: ${{ env.DEV_ENV }} +# - name: Untagged - Sql Managed Instance Auto Start +# run: ./scripts/sqlmi/auto-start-stop.sh start untagged +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Output log file - run: ./scripts/common/log-output.sh +# - name: Output log file +# run: ./scripts/common/log-output.sh - - name: Wait for Sql Managed Instances to start - if: env.DEV_ENV != 'true' - run: sleep 600 - - - name: Sql Managed Instance status check - if: env.DEV_ENV != 'true' - run: ./scripts/sqlmi/sqlmistatus.sh start ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} \ No newline at end of file +# - name: Wait for Sql Managed Instances to start +# if: env.DEV_ENV != 'true' +# run: sleep 600 + +# - name: Sql Managed Instance status check +# if: env.DEV_ENV != 'true' +# run: ./scripts/sqlmi/sqlmistatus.sh start ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} diff --git a/.github/workflows/storage-sftp-auto-disable.yaml b/.github/workflows/storage-sftp-auto-disable.yaml index a4ee56f2..74f9f7b1 100644 --- a/.github/workflows/storage-sftp-auto-disable.yaml +++ b/.github/workflows/storage-sftp-auto-disable.yaml @@ -1,60 +1,60 @@ -name: storage-sftp-auto-disable -on: - workflow_dispatch: - schedule: - - cron: "0 19 * * *" # Every day at 8pm BST -env: - DEV_ENV: ${{ secrets.DEV_ENV }} -permissions: - id-token: write -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: "Az CLI login" - uses: azure/login@v2 - with: - client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown - tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET - allow-no-subscriptions: true - - name: Staging - disable sftp - run: ./scripts/blob-storage/disable_sftp.sh staging - env: - DEV_ENV: ${{ env.DEV_ENV }} - - name: Testing - disable sftp - run: ./scripts/blob-storage/disable_sftp.sh testing - env: - DEV_ENV: ${{ env.DEV_ENV }} - - name: Demo - disable sftp - run: ./scripts/blob-storage/disable_sftp.sh demo - env: - DEV_ENV: ${{ env.DEV_ENV }} - - name: Development - disable sftp - run: ./scripts/blob-storage/disable_sftp.sh development - env: - DEV_ENV: ${{ env.DEV_ENV }} - - name: Sandbox - disable sftp - run: ./scripts/blob-storage/disable_sftp.sh sandbox - env: - DEV_ENV: ${{ env.DEV_ENV }} - - name: ITHC - disable sftp - run: ./scripts/blob-storage/disable_sftp.sh ithc - env: - DEV_ENV: ${{ env.DEV_ENV }} - - name: Untagged - disable sftp - run: ./scripts/blob-storage/disable_sftp.sh untagged - env: - DEV_ENV: ${{ env.DEV_ENV }} +# name: storage-sftp-auto-disable +# on: +# workflow_dispatch: +# schedule: +# - cron: "0 19 * * *" # Every day at 8pm BST +# env: +# DEV_ENV: ${{ secrets.DEV_ENV }} +# permissions: +# id-token: write +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@v4 +# - name: "Az CLI login" +# uses: azure/login@v2 +# with: +# client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown +# tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET +# allow-no-subscriptions: true +# - name: Staging - disable sftp +# run: ./scripts/blob-storage/disable_sftp.sh staging +# env: +# DEV_ENV: ${{ env.DEV_ENV }} +# - name: Testing - disable sftp +# run: ./scripts/blob-storage/disable_sftp.sh testing +# env: +# DEV_ENV: ${{ env.DEV_ENV }} +# - name: Demo - disable sftp +# run: ./scripts/blob-storage/disable_sftp.sh demo +# env: +# DEV_ENV: ${{ env.DEV_ENV }} +# - name: Development - disable sftp +# run: ./scripts/blob-storage/disable_sftp.sh development +# env: +# DEV_ENV: ${{ env.DEV_ENV }} +# - name: Sandbox - disable sftp +# run: ./scripts/blob-storage/disable_sftp.sh sandbox +# env: +# DEV_ENV: ${{ env.DEV_ENV }} +# - name: ITHC - disable sftp +# run: ./scripts/blob-storage/disable_sftp.sh ithc +# env: +# DEV_ENV: ${{ env.DEV_ENV }} +# - name: Untagged - disable sftp +# run: ./scripts/blob-storage/disable_sftp.sh untagged +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Output log file - run: ./scripts/common/log-output.sh +# - name: Output log file +# run: ./scripts/common/log-output.sh - - name: Wait for SFTP Servers to stop - if: env.DEV_ENV != 'true' - run: sleep 300 - - - name: sftp status check - if: env.DEV_ENV != 'true' - run: ./scripts/blob-storage/sftp-check-status.sh stop ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} +# - name: Wait for SFTP Servers to stop +# if: env.DEV_ENV != 'true' +# run: sleep 300 + +# - name: sftp status check +# if: env.DEV_ENV != 'true' +# run: ./scripts/blob-storage/sftp-check-status.sh stop ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} diff --git a/.github/workflows/storage-sftp-auto-enable.yaml b/.github/workflows/storage-sftp-auto-enable.yaml index b4fd94f2..7635ff2b 100644 --- a/.github/workflows/storage-sftp-auto-enable.yaml +++ b/.github/workflows/storage-sftp-auto-enable.yaml @@ -1,60 +1,60 @@ -name: storage-sftp-auto-enable -on: - workflow_dispatch: - schedule: - - cron: "30 5 * * 1-5" # Every weekday at 6:30am BST -env: - DEV_ENV: ${{ secrets.DEV_ENV }} -permissions: - id-token: write -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: "Az CLI login" - uses: azure/login@v2 - with: - client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown - tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET - allow-no-subscriptions: true - - name: Staging - enable sftp - run: ./scripts/blob-storage/enable_sftp.sh staging - env: - DEV_ENV: ${{ env.DEV_ENV }} - - name: Testing - enable sftp - run: ./scripts/blob-storage/enable_sftp.sh testing - env: - DEV_ENV: ${{ env.DEV_ENV }} - - name: Demo - enable sftp - run: ./scripts/blob-storage/enable_sftp.sh demo - env: - DEV_ENV: ${{ env.DEV_ENV }} - - name: Development - enable sftp - run: ./scripts/blob-storage/enable_sftp.sh development - env: - DEV_ENV: ${{ env.DEV_ENV }} - - name: Sandbox - enable sftp - run: ./scripts/blob-storage/enable_sftp.sh sandbox - env: - DEV_ENV: ${{ env.DEV_ENV }} - - name: ITHC - enable sftp - run: ./scripts/blob-storage/enable_sftp.sh ithc - env: - DEV_ENV: ${{ env.DEV_ENV }} - - name: Untagged - enable sftp - run: ./scripts/blob-storage/enable_sftp.sh untagged - env: - DEV_ENV: ${{ env.DEV_ENV }} +# name: storage-sftp-auto-enable +# on: +# workflow_dispatch: +# schedule: +# - cron: "30 5 * * 1-5" # Every weekday at 6:30am BST +# env: +# DEV_ENV: ${{ secrets.DEV_ENV }} +# permissions: +# id-token: write +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@v4 +# - name: "Az CLI login" +# uses: azure/login@v2 +# with: +# client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown +# tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET +# allow-no-subscriptions: true +# - name: Staging - enable sftp +# run: ./scripts/blob-storage/enable_sftp.sh staging +# env: +# DEV_ENV: ${{ env.DEV_ENV }} +# - name: Testing - enable sftp +# run: ./scripts/blob-storage/enable_sftp.sh testing +# env: +# DEV_ENV: ${{ env.DEV_ENV }} +# - name: Demo - enable sftp +# run: ./scripts/blob-storage/enable_sftp.sh demo +# env: +# DEV_ENV: ${{ env.DEV_ENV }} +# - name: Development - enable sftp +# run: ./scripts/blob-storage/enable_sftp.sh development +# env: +# DEV_ENV: ${{ env.DEV_ENV }} +# - name: Sandbox - enable sftp +# run: ./scripts/blob-storage/enable_sftp.sh sandbox +# env: +# DEV_ENV: ${{ env.DEV_ENV }} +# - name: ITHC - enable sftp +# run: ./scripts/blob-storage/enable_sftp.sh ithc +# env: +# DEV_ENV: ${{ env.DEV_ENV }} +# - name: Untagged - enable sftp +# run: ./scripts/blob-storage/enable_sftp.sh untagged +# env: +# DEV_ENV: ${{ env.DEV_ENV }} - - name: Output log file - run: ./scripts/common/log-output.sh +# - name: Output log file +# run: ./scripts/common/log-output.sh - - name: Wait for SFTP Servers to start - if: env.DEV_ENV != 'true' - run: sleep 300 - - - name: sftp status check - if: env.DEV_ENV != 'true' - run: ./scripts/blob-storage/sftp-check-status.sh start ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} +# - name: Wait for SFTP Servers to start +# if: env.DEV_ENV != 'true' +# run: sleep 300 + +# - name: sftp status check +# if: env.DEV_ENV != 'true' +# run: ./scripts/blob-storage/sftp-check-status.sh start ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} diff --git a/.github/workflows/vm-auto-shutdown.yaml b/.github/workflows/vm-auto-shutdown.yaml index 81290af2..08e82072 100644 --- a/.github/workflows/vm-auto-shutdown.yaml +++ b/.github/workflows/vm-auto-shutdown.yaml @@ -1,32 +1,32 @@ -name: vm-auto-shutdown -on: - workflow_dispatch: - schedule: - - cron: '0 19,22 * * *' # Every day at 20:00 and 23:00 BST -permissions: - id-token: write -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: 'Az CLI login' - uses: azure/login@v2 - with: - client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown - tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET - allow-no-subscriptions: true - - name: VM Auto Shutdown - run: ./scripts/vm/auto-start-stop.sh deallocate - env: - DEV_ENV: ${{ secrets.DEV_ENV }} +# name: vm-auto-shutdown +# on: +# workflow_dispatch: +# schedule: +# - cron: '0 19,22 * * *' # Every day at 20:00 and 23:00 BST +# permissions: +# id-token: write +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@v4 +# - name: 'Az CLI login' +# uses: azure/login@v2 +# with: +# client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown +# tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET +# allow-no-subscriptions: true +# - name: VM Auto Shutdown +# run: ./scripts/vm/auto-start-stop.sh deallocate +# env: +# DEV_ENV: ${{ secrets.DEV_ENV }} - - name: Output log file - run: ./scripts/common/log-output.sh +# - name: Output log file +# run: ./scripts/common/log-output.sh - - name: Wait for VMs to stop - run: sleep 600 - - - name: VM Auto Shutdown status check - run: ./scripts/vm/vmstatus.sh deallocate ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} +# - name: Wait for VMs to stop +# run: sleep 600 + +# - name: VM Auto Shutdown status check +# run: ./scripts/vm/vmstatus.sh deallocate ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} diff --git a/.github/workflows/vm-auto-start.yaml b/.github/workflows/vm-auto-start.yaml index 6fcd5f2e..a066985a 100644 --- a/.github/workflows/vm-auto-start.yaml +++ b/.github/workflows/vm-auto-start.yaml @@ -1,32 +1,32 @@ -name: VM-auto-start -on: - workflow_dispatch: - schedule: - - cron: '30 5 * * 1-5' # Every weekday at 6:30am BST -permissions: - id-token: write -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: 'Az CLI login' - uses: azure/login@v2 - with: - client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown - tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET - allow-no-subscriptions: true - - name: VM Auto Start - run: ./scripts/vm/auto-start-stop.sh start - env: - DEV_ENV: ${{ secrets.DEV_ENV }} +# name: VM-auto-start +# on: +# workflow_dispatch: +# schedule: +# - cron: '30 5 * * 1-5' # Every weekday at 6:30am BST +# permissions: +# id-token: write +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@v4 +# - name: 'Az CLI login' +# uses: azure/login@v2 +# with: +# client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown +# tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET +# allow-no-subscriptions: true +# - name: VM Auto Start +# run: ./scripts/vm/auto-start-stop.sh start +# env: +# DEV_ENV: ${{ secrets.DEV_ENV }} - - name: Output log file - run: ./scripts/common/log-output.sh +# - name: Output log file +# run: ./scripts/common/log-output.sh - - name: Wait for VMs to start - run: sleep 600 - - - name: VM Auto start status check - run: ./scripts/vm/vmstatus.sh start ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }} +# - name: Wait for VMs to start +# run: sleep 600 + +# - name: VM Auto start status check +# run: ./scripts/vm/vmstatus.sh start ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }}