Skip to content

Commit

Permalink
GHA Daily tasks (#1442)
Browse files Browse the repository at this point in the history
Co-authored-by: Automatic Update <[email protected]>
  • Loading branch information
sveinpj and Automatic Update authored Sep 5, 2024
1 parent 10ec3c2 commit fadc0b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/startclusters.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: start-cluster
on:
workflow_dispatch:
schedule:
# - cron: '0 4 * * 1-5' #utc Summer time
- cron: '0 5 * * 1-5' #utc Winter time
Expand All @@ -11,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
environment: operations
env:
KV_GROUP: common
KV_GROUP: common-dev
ENVIROMENT: dev
steps:
- uses: actions/checkout@v4 #Clone Repo
Expand All @@ -28,7 +29,7 @@ jobs:

- name: Add GitHub IP to KeyVault
run: |
az keyvault network-rule add --name "radix-vault-${{ env.ENVIROMENT}}" \
az keyvault network-rule add --name "radix-keyv-${{ env.ENVIROMENT}}" \
--resource-group "${{ env.KV_GROUP}}" \
--ip-address ${{ steps.github_public_ip.outputs.ipv4 }} >/dev/null
Expand All @@ -40,6 +41,6 @@ jobs:

- name: Revoke GitHub IP on KeyVault
run: |
az keyvault network-rule remove --name "radix-vault-${{ env.ENVIROMENT}}" \
az keyvault network-rule remove --name "radix-keyv-${{ env.ENVIROMENT}}" \
--resource-group "${{ env.KV_GROUP}}" \
--ip-address ${{ steps.github_public_ip.outputs.ipv4 }} >/dev/null
7 changes: 4 additions & 3 deletions .github/workflows/stopclusters.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: stop-cluster
on:
workflow_dispatch:
schedule:
# - cron: '0 16 * * 1-5' #utc Summer time - Initial
# - cron: '0 18 * * 1-5' #utc Summer time - Runs second time if initial run did not succeed
Expand All @@ -13,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
environment: operations
env:
KV_GROUP: common
KV_GROUP: common-dev
ENVIROMENT: dev
steps:
- uses: actions/checkout@v4 #Clone Repo
Expand All @@ -30,7 +31,7 @@ jobs:

- name: Add GitHub IP to KeyVault
run: |
az keyvault network-rule add --name "radix-vault-${{ env.ENVIROMENT}}" \
az keyvault network-rule add --name "radix-keyv-${{ env.ENVIROMENT}}" \
--resource-group "${{ env.KV_GROUP}}" \
--ip-address ${{ steps.github_public_ip.outputs.ipv4 }} >/dev/null
Expand All @@ -42,7 +43,7 @@ jobs:

- name: Revoke GitHub IP on KeyVault
run: |
az keyvault network-rule remove --name "radix-vault-${{ env.ENVIROMENT}}" \
az keyvault network-rule remove --name "radix-keyv-${{ env.ENVIROMENT}}" \
--resource-group "${{ env.KV_GROUP}}" \
--ip-address ${{ steps.github_public_ip.outputs.ipv4 }} >/dev/null

0 comments on commit fadc0b0

Please sign in to comment.