Skip to content

build(deps): bump hashicorp/vault from 3.25.0 to 4.0.0 in /terraform #61

build(deps): bump hashicorp/vault from 3.25.0 to 4.0.0 in /terraform

build(deps): bump hashicorp/vault from 3.25.0 to 4.0.0 in /terraform #61

Workflow file for this run

name: Terraform Plan
on:
pull_request:
paths:
- 'terraform/**'
workflow_dispatch:
jobs:
plan:
runs-on: gha-runner-scale-set-kub1k
permissions:
contents: read
pull-requests: write
name: Create terraform plan
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
VAULT_ADDR: ${{ secrets.VAULT_ADDR }}
VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: terraform plan
uses: dflook/terraform-plan@v1.42
with:
path: terraform
workspace: kub1k
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
TERRAFORM_PRE_RUN: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
apt-get update
apt-get install openssh-client -y
eval $(ssh-agent)
ssh-add ~/.ssh/id_rsa
curl -sSL https://github.com/alexellis/k3sup/releases/latest/download/k3sup > k3sup
chmod +x k3sup
mv k3sup /usr/bin/k3sup
mkdir -p ~/.kube/config-files