From 619e77c9dbce4f8e01d579ca8cf11a561afa423c Mon Sep 17 00:00:00 2001 From: Ugur Turkarslan <52721344+utr1903@users.noreply.github.com> Date: Sun, 23 Jun 2024 22:17:37 +0200 Subject: [PATCH] Comment out cronjobs (#70) --- .github/workflows/aks_start.yaml | 66 ++++++++++++++++---------------- .github/workflows/aks_stop.yaml | 66 ++++++++++++++++---------------- 2 files changed, 66 insertions(+), 66 deletions(-) diff --git a/.github/workflows/aks_start.yaml b/.github/workflows/aks_start.yaml index f08e97e..37dcff8 100644 --- a/.github/workflows/aks_start.yaml +++ b/.github/workflows/aks_start.yaml @@ -1,39 +1,39 @@ -name: AKS start cron job +# name: AKS start cron job -on: - schedule: - - cron: "0 8 * * 1-5" # Run every weekday at 08:00 +# on: +# schedule: +# - cron: "0 8 * * 1-5" # Run every weekday at 08:00 -jobs: - aks_start: - name: "Start AKS" - runs-on: ubuntu-latest +# jobs: +# aks_start: +# name: "Start AKS" +# runs-on: ubuntu-latest - steps: - - name: Checkout repository - id: checkout_repo - uses: actions/checkout@v4 +# steps: +# - name: Checkout repository +# id: checkout_repo +# uses: actions/checkout@v4 - - name: Login to Azure - id: login_to_azure - run: | - az login \ - --service-principal \ - -u ${{ secrets.AZURE_SERVICE_PRINCIPAL_APP_ID }} \ - -p ${{ secrets.AZURE_SERVICE_PRINCIPAL_SECRET }} \ - --tenant ${{ secrets.AZURE_TENANT_ID }} +# - name: Login to Azure +# id: login_to_azure +# run: | +# az login \ +# --service-principal \ +# -u ${{ secrets.AZURE_SERVICE_PRINCIPAL_APP_ID }} \ +# -p ${{ secrets.AZURE_SERVICE_PRINCIPAL_SECRET }} \ +# --tenant ${{ secrets.AZURE_TENANT_ID }} - - name: Start AKS - id: start_aks - run: | - az aks start \ - --subscription ${{ secrets.AZURE_SUBSCRIPTION_ID }} \ - --resource-group "rg${{ secrets.PROJECT }}main${{ secrets.INSTANCE }}" \ - --name "aks${{ secrets.PROJECT }}main${{ secrets.INSTANCE }}" \ - --no-wait +# - name: Start AKS +# id: start_aks +# run: | +# az aks start \ +# --subscription ${{ secrets.AZURE_SUBSCRIPTION_ID }} \ +# --resource-group "rg${{ secrets.PROJECT }}main${{ secrets.INSTANCE }}" \ +# --name "aks${{ secrets.PROJECT }}main${{ secrets.INSTANCE }}" \ +# --no-wait - - name: Logout of Azure - id: logout_from_azure - if: always() - run: | - az logout +# - name: Logout of Azure +# id: logout_from_azure +# if: always() +# run: | +# az logout diff --git a/.github/workflows/aks_stop.yaml b/.github/workflows/aks_stop.yaml index 77f6e13..992264b 100644 --- a/.github/workflows/aks_stop.yaml +++ b/.github/workflows/aks_stop.yaml @@ -1,39 +1,39 @@ -name: AKS stop cron job +# name: AKS stop cron job -on: - schedule: - - cron: "0 16 * * 1-5" # Run every weekday at 16:00 +# on: +# schedule: +# - cron: "0 16 * * 1-5" # Run every weekday at 16:00 -jobs: - aks_stop: - name: "Stop AKS" - runs-on: ubuntu-latest +# jobs: +# aks_stop: +# name: "Stop AKS" +# runs-on: ubuntu-latest - steps: - - name: Checkout repository - id: checkout_repo - uses: actions/checkout@v4 +# steps: +# - name: Checkout repository +# id: checkout_repo +# uses: actions/checkout@v4 - - name: Login to Azure - id: login_to_azure - run: | - az login \ - --service-principal \ - -u ${{ secrets.AZURE_SERVICE_PRINCIPAL_APP_ID }} \ - -p ${{ secrets.AZURE_SERVICE_PRINCIPAL_SECRET }} \ - --tenant ${{ secrets.AZURE_TENANT_ID }} +# - name: Login to Azure +# id: login_to_azure +# run: | +# az login \ +# --service-principal \ +# -u ${{ secrets.AZURE_SERVICE_PRINCIPAL_APP_ID }} \ +# -p ${{ secrets.AZURE_SERVICE_PRINCIPAL_SECRET }} \ +# --tenant ${{ secrets.AZURE_TENANT_ID }} - - name: Stop AKS - id: stop_aks - run: | - az aks stop \ - --subscription ${{ secrets.AZURE_SUBSCRIPTION_ID }} \ - --resource-group "rg${{ secrets.PROJECT }}main${{ secrets.INSTANCE }}" \ - --name "aks${{ secrets.PROJECT }}main${{ secrets.INSTANCE }}" \ - --no-wait +# - name: Stop AKS +# id: stop_aks +# run: | +# az aks stop \ +# --subscription ${{ secrets.AZURE_SUBSCRIPTION_ID }} \ +# --resource-group "rg${{ secrets.PROJECT }}main${{ secrets.INSTANCE }}" \ +# --name "aks${{ secrets.PROJECT }}main${{ secrets.INSTANCE }}" \ +# --no-wait - - name: Logout of Azure - id: logout_from_azure - if: always() - run: | - az logout +# - name: Logout of Azure +# id: logout_from_azure +# if: always() +# run: | +# az logout