Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cache_ggshield
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"last_found_secrets": [{"name": "Azure Logic App Shared Access Signature - c:\\Users\\Yurii\\Main\\infra\\AZDT\\README.MD", "match": "027420f9f5480c0be4f60e6ffb412efe4cab2de83a138ed4ffcec1821178dbf9"}]}
37 changes: 37 additions & 0 deletions .github/workflows/kubernetes-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Kubernetes Deployment

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
kubernetes-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
cache-dependency-path: 'infra/Kube/yarn.lock'

- name: Install dependencies
run: cd infra/Kube && yarn install

- name: Set up Doppler CLI
uses: dopplerhq/cli-action@v2

- name: Connect to Doppler project
run: doppler setup --no-prompt --token ${{ secrets.DOPPLER_TOKEN }}

- name: Pre-deployment setup
run: cd infra/Kube && yarn run pre

- name: Deploy to Kubernetes
run: cd infra/Kube && yarn run deploy
33 changes: 33 additions & 0 deletions .github/workflows/terraform-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Terraform Deployment
on:
workflow_dispatch:
jobs:
terraform-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: '1.5.7'
- name: Install Terragrunt
run: |
TERRAGRUNT_VERSION=0.53.1
wget https://github.com/gruntwork-io/terragrunt/releases/download/v${TERRAGRUNT_VERSION}/terragrunt_linux_amd64
chmod +x terragrunt_linux_amd64
sudo mv terragrunt_linux_amd64 /usr/local/bin/terragrunt
terragrunt --version
- name: Set up Doppler CLI
uses: dopplerhq/cli-action@v2
- name: Connect to Doppler project
run: doppler setup --no-interactive --token ${{ secrets.DOPPLER_TOKEN }} --project "az" --config dev

- name: Pre-deployment setup
run: cd infra/Terraform && terraform init && doppler run -- terraform apply -target=module.sa -auto-approve

- name: Initialize Terraform
run: cd infra/Terraform && doppler run -- terragrunt init --terragrunt-non-interactive

- name: Apply Terraform changes
run: cd infra/Terraform && doppler run -- terragrunt apply -auto-approve -target=module.ci -target=module.aks -target=module.network -target=module.acr
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ temp.txt
# Doppler environment files
.env
.env.*
backend.tf
backend.tf
.secrets
Loading
Loading