Skip to content

Commit

Permalink
adding large-runners
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosrodlop committed Nov 8, 2024
1 parent f50b37a commit 58befe5
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/md-link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
jobs:
check-links:
name: MD_Check_Links
runs-on: ubuntu-latest
runs-on:
group: large-runners
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@v1
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
runs-on:
group: large-runners
steps:
# (Optional) GitHub Enterprise requires GHE_HOST variable set
#- name: Set GHE_HOST
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/superlinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
jobs:
superlinter:
name: Super_Linter
runs-on: ubuntu-latest
runs-on:
group: large-runners
steps:
- name: Checkout Repository
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/terraform-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ on:
jobs:
docs:
name: Terraform_Docs
runs-on: ubuntu-latest
runs-on:
group: large-runners
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
with:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ concurrency:
jobs:
collectInputs:
name: Collect workflow inputs
runs-on: ubuntu-latest
runs-on:
group: large-runners
outputs:
directories: ${{ steps.dirs.outputs.directories }}
steps:
Expand All @@ -36,7 +37,8 @@ jobs:
preCommitMinVersions:
name: Min TF pre-commit
needs: collectInputs
runs-on: ubuntu-latest
runs-on:
group: large-runners
strategy:
matrix:
directory: ${{ fromJson(needs.collectInputs.outputs.directories) }}
Expand Down Expand Up @@ -82,7 +84,8 @@ jobs:

preCommitMaxVersion:
name: Max TF pre-commit
runs-on: ubuntu-latest
runs-on:
group: large-runners
needs: collectInputs
steps:
- name: Remove default Terraform
Expand Down
6 changes: 3 additions & 3 deletions blueprints/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ tf-destroy () {
export TF_LOG_PATH="$SCRIPTDIR/$root/terraform.log"
rm "$TF_LOG_PATH" || INFO "No previous log found."
tf-destroy-wl "$root"
eks_cluster_name=$(tf-output "$root" eks_cluster_name)
aws_region=$(tf-output "$root" aws_region)
retry 3 "terraform -chdir=$SCRIPTDIR/$root destroy -target=module.eks -auto-approve"
INFO "Destroy target module.eks completed."
#Prevent Issue #165
if [ "$root" == "${BLUEPRINTS[1]}" ]; then
eks_cluster_name=$(tf-output "$root" eks_cluster_name)
aws_region=$(tf-output "$root" aws_region)
if [ "$root" == "${BLUEPRINTS[1]}" ] && [ -n "$eks_cluster_name" ] && [ -n "$aws_region" ]; then
bash "$SCRIPTDIR/$root/k8s/kube-prom-destroy.sh" "$eks_cluster_name" "$aws_region"
INFO "kube-prom-destroy.sh completed."
fi
Expand Down

0 comments on commit 58befe5

Please sign in to comment.