Skip to content

Commit

Permalink
removed pre-bsl terraform version due to compatibility issues; testin…
Browse files Browse the repository at this point in the history
…g terraform setup using setup-terraform action
  • Loading branch information
Alexey Orlov committed Dec 17, 2024
1 parent 5c73f8a commit fe6e621
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 97 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: 'Modules Test Run - Terraform v1.10.2'

on:
schedule:
- cron: '0 8 * * 1' # run every Monday at 11:00 MSK
- cron: '0 8 * * 2' # run every Tuesday at 11:00 MSK
workflow_dispatch:

jobs:
setup:
name: 'Modules Test Run - Terraform v1.10.2'
runs-on: self-hosted
env:
terraform_link: ${{ secrets.TERRAFORM_BINARY_LATEST }}
terraform_link: ${{ secrets.TERRAFORM_BINARY }}
TF_VAR_selectel_domain_name: ${{ secrets.SELECTEL_ID }}
TF_VAR_selectel_user_admin_user: ${{ secrets.SERVICE_USER }}
TF_VAR_selectel_user_admin_password: ${{ secrets.SERVICE_PASSWORD }}
Expand All @@ -27,13 +27,16 @@ jobs:
node-version: 20

- name: Setup Terraform
shell: bash
run: |
curl -o terraform.zip $terraform_link
unzip terraform.zip
rm terraform.zip
chmod 755 terraform
mv terraform /usr/local/bin
uses: hashicorp/setup-terraform@v3

# - name: Setup Terraform
# shell: bash
# run: |
# curl -o terraform.zip $terraform_link
# unzip terraform.zip
# rm terraform.zip
# chmod 755 terraform
# mv terraform /usr/local/bin

# - name: Run Checkov action # suppressed for now because it fails to copy a file inside a self-hosted runner
# uses: bridgecrewio/checkov-action@v12
Expand Down Expand Up @@ -72,17 +75,14 @@ jobs:
- name: Terraform destroy
run: terraform destroy -auto-approve

# - name: Telegram notify if job was failed
# if: ${{ failure() }}
# uses: appleboy/telegram-action@master
# with:
# to: ${{ secrets.TELEGRAM_TO }}
# token: ${{ secrets.TELEGRAM_TOKEN }}
# message: |
# -= GITHUB public repository selectel/selectel-infra-examples =-
# Terraform modules build pipeline was failed
# 🚨 Critical
# Не катится пайпа, необходимо принять меры, возможно внутренние пайпы с terraform так же не будут катиться.
#
# ⚡️Workflow: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
# 🔥 See changes: https://github.com/${{ github.repository }}/commit/${{ github.sha }}
- name: Telegram notify if job was failed
if: ${{ (failure()) && (github.ref == 'refs/heads/main') }}
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
⚙️ *GitHub repository selectel/selectel-infra-examples*
🔥 *Pipeline has failed*
➡️ *Workflow:* https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
73 changes: 0 additions & 73 deletions .github/workflows/tf-pre-bsl.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
| Description | Pipeline Status | Version |
|-------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------|
| Terraform v1.10.2 | [![](https://github.com/selectel/selectel-infra-examples/actions/workflows/modules.yml/badge.svg)](https://github.com/selectel/selectel-infra-examples/actions/workflows/modules.yml) | [![version](https://img.shields.io/badge/Terraform-1.10.2-green.svg)](https://github.com/hashicorp/terraform/releases/tag/v1.10.2) |
| Terraform Pre-BSL | [![](https://github.com/selectel/selectel-infra-examples/actions/workflows/tf-pre-bsl.yml/badge.svg)](https://github.com/selectel/selectel-infra-examples/actions/workflows/tf-pre-bsl.yml) | [![version](https://img.shields.io/badge/Terraform-1.5.7-green.svg)](https://github.com/hashicorp/terraform/releases/tag/v1.5.7) |
| OpenTofu Latest | [![](https://github.com/selectel/selectel-infra-examples/actions/workflows/opentofu.yml/badge.svg)](https://github.com/selectel/selectel-infra-examples/actions/workflows/opentofu.yml) | [![version](https://img.shields.io/badge/OpenTofu-Latest-green.svg)](https://github.com/opentofu/opentofu/releases/latest) |

- [Selectel Terraform Modules Example](#selectel-terraform-modules-example)
Expand Down

0 comments on commit fe6e621

Please sign in to comment.