From 5c3adaa6243df292366ccbce2691b5899a12662c Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 15:44:47 -0500 Subject: [PATCH 01/19] feat: tf lint --- .github/workflows/check.yml | 14 ++++++++++++++ README.md | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..a773ae9 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,14 @@ +name: ⭐ Quality Assurance + +on: [push, pull_request] + +jobs: + tf-lint: + name: Terraform Lint + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@main + + - name: Run Linter + uses: actionshub/terraform-lint@main \ No newline at end of file diff --git a/README.md b/README.md index 75f4bf0..cb118cc 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # proxy -How all other applications interact with the web. \ No newline at end of file +How all other applications interact with the web. + +s \ No newline at end of file -- 2.49.1 From 384815b4a4d8be687f30a93036676fe5702c0c84 Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 20:19:47 -0500 Subject: [PATCH 02/19] feat: added init and plan --- .github/workflows/check.yml | 38 +++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index a773ae9..911b7d6 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,14 +1,36 @@ name: ⭐ Quality Assurance -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: + branches: + - main jobs: - tf-lint: - name: Terraform Lint + terraform: + name: Terraform Format and Plan runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@main - - name: Run Linter - uses: actionshub/terraform-lint@main \ No newline at end of file + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Terraform + uses: hashicorp/setup-terraform@v2 + + - name: Format Terraform + run: | + cd terraform + terraform fmt -check + + - name: Terraform Init + run: | + cd terraform + terraform init + + - name: Terraform Plan + run: | + cd terraform + terraform plan -out=tfplan -no-color \ No newline at end of file -- 2.49.1 From 1ef8c9c17355f944af8733912e8d4c5604438f80 Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 20:30:19 -0500 Subject: [PATCH 03/19] feat: added backend config secret --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 911b7d6..77bd1ac 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -28,7 +28,7 @@ jobs: - name: Terraform Init run: | cd terraform - terraform init + terraform init -backend-config="${{ secrets.BACKEND_CONFIG }}" - name: Terraform Plan run: | -- 2.49.1 From 93dbac96926b502ae11b3d9553d6556eccce424b Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 20:46:34 -0500 Subject: [PATCH 04/19] fix: hopefully we don't leak anymore --- .github/workflows/check.yml | 3 +++ terraform/provider.tf | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 77bd1ac..ab8f1e0 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -26,6 +26,9 @@ jobs: terraform fmt -check - name: Terraform Init + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} run: | cd terraform terraform init -backend-config="${{ secrets.BACKEND_CONFIG }}" diff --git a/terraform/provider.tf b/terraform/provider.tf index d97d5b4..9da56fc 100644 --- a/terraform/provider.tf +++ b/terraform/provider.tf @@ -1,6 +1,10 @@ terraform { # The backend is stored in an S3 bucket. - backend "s3" {} + backend "s3" { + bucket = "tsuga-sieboldii" + key = "proxy" + region = "us-east-1" + } } # Access AWS through the IaC roles. -- 2.49.1 From 73fa413df89974bdd26807c95399a3ef746fe322 Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 20:47:25 -0500 Subject: [PATCH 05/19] style: formatting terraform --- terraform/provider.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/provider.tf b/terraform/provider.tf index 9da56fc..1f5e80d 100644 --- a/terraform/provider.tf +++ b/terraform/provider.tf @@ -2,7 +2,7 @@ terraform { # The backend is stored in an S3 bucket. backend "s3" { bucket = "tsuga-sieboldii" - key = "proxy" + key = "proxy" region = "us-east-1" } } -- 2.49.1 From 554525c287ab1dd5ee8a3e8ce7a338fc49ae7b8b Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 20:48:32 -0500 Subject: [PATCH 06/19] fix: removed exposable backend config --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index ab8f1e0..f075344 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -31,7 +31,7 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} run: | cd terraform - terraform init -backend-config="${{ secrets.BACKEND_CONFIG }}" + terraform init - name: Terraform Plan run: | -- 2.49.1 From eb91cf50520c1532272e4bd76a099e5400c99c8d Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 20:55:13 -0500 Subject: [PATCH 07/19] fix: using secrets for aws login --- terraform/provider.tf | 4 +--- terraform/variables.tf | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/terraform/provider.tf b/terraform/provider.tf index 1f5e80d..0562314 100644 --- a/terraform/provider.tf +++ b/terraform/provider.tf @@ -9,7 +9,5 @@ terraform { # Access AWS through the IaC roles. provider "aws" { - region = var.aws_region - access_key = var.aws_access - secret_key = var.aws_secret + region = "us-east-1" } \ No newline at end of file diff --git a/terraform/variables.tf b/terraform/variables.tf index 6565f7e..06ab585 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -1,14 +1,17 @@ variable "aws_region" { type = string description = "The AWS region things are created in." + sensitive = true } variable "aws_access" { type = string description = "The access key to generate the Gitea instance." + sensitive = true } variable "aws_secret" { type = string description = "The access secret to generate the Gitea instance." + sensitive = true } \ No newline at end of file -- 2.49.1 From e46795fd57fc5776dcd02882283a2982922a1164 Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 20:56:18 -0500 Subject: [PATCH 08/19] fix: aws credentials for plan --- .github/workflows/check.yml | 3 +++ terraform/variables.tf | 17 ----------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f075344..c93eb71 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -34,6 +34,9 @@ jobs: terraform init - name: Terraform Plan + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} run: | cd terraform terraform plan -out=tfplan -no-color \ No newline at end of file diff --git a/terraform/variables.tf b/terraform/variables.tf index 06ab585..e69de29 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -1,17 +0,0 @@ -variable "aws_region" { - type = string - description = "The AWS region things are created in." - sensitive = true -} - -variable "aws_access" { - type = string - description = "The access key to generate the Gitea instance." - sensitive = true -} - -variable "aws_secret" { - type = string - description = "The access secret to generate the Gitea instance." - sensitive = true -} \ No newline at end of file -- 2.49.1 From 1beac34439141837d97c17dd5d977a2f53f45f2b Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 21:02:37 -0500 Subject: [PATCH 09/19] style: linting github action --- .github/workflows/check.yml | 12 ++++++------ README.md | 2 -- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index c93eb71..42cf3ed 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,22 +10,22 @@ on: jobs: terraform: - name: Terraform Format and Plan + name: 🩰 Ensure Sound Infrastructure runs-on: ubuntu-latest steps: - - name: Checkout code + - name: đŸ›Šī¸ Checkout to Repository uses: actions/checkout@v2 - - name: Set up Terraform + - name: 🧱 Set-up Terraform uses: hashicorp/setup-terraform@v2 - - name: Format Terraform + - name: đŸ–Œī¸ Format Terraform run: | cd terraform terraform fmt -check - - name: Terraform Init + - name: 🚧 Initialize Terraform Back-end env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -33,7 +33,7 @@ jobs: cd terraform terraform init - - name: Terraform Plan + - name: đŸ—ī¸ Terraform Plan env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} diff --git a/README.md b/README.md index cb118cc..e39aec0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ # proxy How all other applications interact with the web. - -s \ No newline at end of file -- 2.49.1 From 7992362abcfa130b46bf1ca403b99b10452f07cf Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 21:04:59 -0500 Subject: [PATCH 10/19] style: emojis are too much --- .github/workflows/check.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 42cf3ed..a3bd629 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,4 +1,4 @@ -name: ⭐ Quality Assurance +name: Quality Assurance on: push: @@ -10,22 +10,22 @@ on: jobs: terraform: - name: 🩰 Ensure Sound Infrastructure + name: Ensure Sound Infrastructure runs-on: ubuntu-latest steps: - - name: đŸ›Šī¸ Checkout to Repository + - name: Checkout to Repository uses: actions/checkout@v2 - - name: 🧱 Set-up Terraform + - name: Set-up Terraform uses: hashicorp/setup-terraform@v2 - - name: đŸ–Œī¸ Format Terraform + - name: Format Terraform run: | cd terraform terraform fmt -check - - name: 🚧 Initialize Terraform Back-end + - name: Initialize Terraform Back-end env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -33,7 +33,7 @@ jobs: cd terraform terraform init - - name: đŸ—ī¸ Terraform Plan + - name: Terraform Plan env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} -- 2.49.1 From 804743d2dff5b07ee64c4d3fd0ce41d61cdf9b61 Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 21:20:03 -0500 Subject: [PATCH 11/19] feat: added deploy option when on the main branch --- .github/workflows/check.yml | 42 --------------------------- .github/workflows/deploy.yml | 56 ++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 42 deletions(-) delete mode 100644 .github/workflows/check.yml create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml deleted file mode 100644 index a3bd629..0000000 --- a/.github/workflows/check.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Quality Assurance - -on: - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - terraform: - name: Ensure Sound Infrastructure - runs-on: ubuntu-latest - - steps: - - name: Checkout to Repository - uses: actions/checkout@v2 - - - name: Set-up Terraform - uses: hashicorp/setup-terraform@v2 - - - name: Format Terraform - run: | - cd terraform - terraform fmt -check - - - name: Initialize Terraform Back-end - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - run: | - cd terraform - terraform init - - - name: Terraform Plan - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - run: | - cd terraform - terraform plan -out=tfplan -no-color \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..1721b56 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,56 @@ +name: Build and Deploy Architecture + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + terraform: + name: Deploy Infrastructure + runs-on: ubuntu-latest + + steps: + - name: Checkout to Repository + uses: actions/checkout@v2 + + - name: Set-up Terraform + uses: hashicorp/setup-terraform@v2 + + - name: Format Terraform + run: terraform fmt -check + working-directory: ./terraform + + - name: Initialize Terraform Back-end + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + run: terraform init + working-directory: ./terraform + + - name: Terraform Plan + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + run: terraform plan -out=tfplan -no-color + working-directory: ./terraform + + - name: Check if there are changes + id: check_changes + run: | + if [ -n "$(terraform show -no-color tfplan | grep -E 'No changes.')" ]; then + echo "No changes detected." + echo "::set-output name=changes::false" + else + echo "Changes detected." + echo "::set-output name=changes::true" + fi + working-directory: ./terraform + + - name: Terraform Apply + if: ${{ (steps.check_changes.outputs.changes == 'true') && (github.ref == 'refs/heads/master') }} + run: terraform apply -auto-approve tfplan + working-directory: ./terraform \ No newline at end of file -- 2.49.1 From 0a3be5336b6cfb240f3b08ccf7114a6cf6bbb5a3 Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 21:21:44 -0500 Subject: [PATCH 12/19] fix: main, not master --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1721b56..875e4a1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -51,6 +51,6 @@ jobs: working-directory: ./terraform - name: Terraform Apply - if: ${{ (steps.check_changes.outputs.changes == 'true') && (github.ref == 'refs/heads/master') }} + if: ${{ (steps.check_changes.outputs.changes == 'true') && (github.ref == 'refs/heads/main') }} run: terraform apply -auto-approve tfplan working-directory: ./terraform \ No newline at end of file -- 2.49.1 From 14fa6c4052e3426ebff5896328c8e3906bb6d1c6 Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 21:24:26 -0500 Subject: [PATCH 13/19] fix: renamed action --- .github/workflows/{deploy.yml => infrstracture.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{deploy.yml => infrstracture.yml} (97%) diff --git a/.github/workflows/deploy.yml b/.github/workflows/infrstracture.yml similarity index 97% rename from .github/workflows/deploy.yml rename to .github/workflows/infrstracture.yml index 875e4a1..6a05942 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/infrstracture.yml @@ -1,4 +1,4 @@ -name: Build and Deploy Architecture +name: Build and Deploy Infrastructure on: push: -- 2.49.1 From 76db2c3dd35c0784a75e62fc5ec1242565506ca6 Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 21:29:01 -0500 Subject: [PATCH 14/19] feat: added ansible-lint --- .../{infrstracture.yml => deployment.yml} | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) rename .github/workflows/{infrstracture.yml => deployment.yml} (74%) diff --git a/.github/workflows/infrstracture.yml b/.github/workflows/deployment.yml similarity index 74% rename from .github/workflows/infrstracture.yml rename to .github/workflows/deployment.yml index 6a05942..47142fd 100644 --- a/.github/workflows/infrstracture.yml +++ b/.github/workflows/deployment.yml @@ -1,16 +1,14 @@ -name: Build and Deploy Infrastructure +name: Build & Deploy on: push: - branches: - - main + branches: [main] pull_request: - branches: - - main + branches: [main] jobs: - terraform: - name: Deploy Infrastructure + infrastructure: + name: Build Infrastructure runs-on: ubuntu-latest steps: @@ -53,4 +51,18 @@ jobs: - name: Terraform Apply if: ${{ (steps.check_changes.outputs.changes == 'true') && (github.ref == 'refs/heads/main') }} run: terraform apply -auto-approve tfplan - working-directory: ./terraform \ No newline at end of file + working-directory: ./terraform + + build: + name: Deploy Application + runs-on: ubuntu-24.04 + steps: + - name: Checkout to Repository + uses: actions/checkout@v4 + + - name: Lint Playbooks + uses: ansible/ansible-lint@main + with: + setup_python: true + working_directory: ./playbooks + requirements_file: ../requirements.txt \ No newline at end of file -- 2.49.1 From f4fee8521e326527039b2046c80bd1087c5b9bc6 Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 21:32:06 -0500 Subject: [PATCH 15/19] fix: use any instance to run ansible job --- .github/workflows/deployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 47142fd..83f43a8 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -55,7 +55,7 @@ jobs: build: name: Deploy Application - runs-on: ubuntu-24.04 + runs-on: ubuntu-latest steps: - name: Checkout to Repository uses: actions/checkout@v4 -- 2.49.1 From ab324b6b1c4eb5d5c311c7afc47024775c3a9384 Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 21:44:47 -0500 Subject: [PATCH 16/19] fix: using native python for running ansible lint --- .github/workflows/deployment.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 83f43a8..91b044a 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -60,9 +60,13 @@ jobs: - name: Checkout to Repository uses: actions/checkout@v4 - - name: Lint Playbooks - uses: ansible/ansible-lint@main + - name: Use Python 3.13 + uses: actions/setup-python@v5 with: - setup_python: true - working_directory: ./playbooks - requirements_file: ../requirements.txt \ No newline at end of file + python-version: '3.13' + cache: pip + - run: pip install -r requirements.txt + + - name: Lint Playbooks + run: ansible-lint + working-directory: ./playbooks -- 2.49.1 From 2de880fb4c6810a8721702a8208bc89fa174d0d5 Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 21:45:15 -0500 Subject: [PATCH 17/19] style: install requirements name --- .github/workflows/deployment.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 91b044a..6b7c6d1 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -65,7 +65,9 @@ jobs: with: python-version: '3.13' cache: pip - - run: pip install -r requirements.txt + + - name: Install Dependencies + run: pip install -r requirements.txt - name: Lint Playbooks run: ansible-lint -- 2.49.1 From db288c1f0662bd21dc3afe816e8b3aea8c093112 Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 22:20:37 -0500 Subject: [PATCH 18/19] feat: run playbook action --- .github/workflows/deployment.yml | 5 +++++ playbooks/deployment.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 6b7c6d1..f46330b 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -72,3 +72,8 @@ jobs: - name: Lint Playbooks run: ansible-lint working-directory: ./playbooks + + - name: Run Playbook + if: ${{ github.ref == 'refs/heads/main' }} + run: ansible-playbook deployment.yml + working-directory: ./playbooks diff --git a/playbooks/deployment.yml b/playbooks/deployment.yml index f0e0c1b..bc0381d 100644 --- a/playbooks/deployment.yml +++ b/playbooks/deployment.yml @@ -1,7 +1,7 @@ - name: Deploy artifact to instance. hosts: localhost vars_files: - - ../config/proxy.json + - ../config/ansible.secret.json - ../secrets/infrastructure.secret.json vars: ansible_connection: aws_ssm -- 2.49.1 From 69718dd467bec24a6c08fa537fa492cd6506c9e6 Mon Sep 17 00:00:00 2001 From: max Date: Tue, 18 Feb 2025 22:24:18 -0500 Subject: [PATCH 19/19] feat: added cache --- .github/workflows/deployment.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index f46330b..f3f48cf 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -10,6 +10,8 @@ jobs: infrastructure: name: Build Infrastructure runs-on: ubuntu-latest + env: + RUNNER_TOOL_CACHE: /toolcache steps: - name: Checkout to Repository @@ -56,6 +58,9 @@ jobs: build: name: Deploy Application runs-on: ubuntu-latest + env: + RUNNER_TOOL_CACHE: /toolcache + steps: - name: Checkout to Repository uses: actions/checkout@v4 -- 2.49.1