Skip to content

build(deps): bump docker/build-push-action from 4 to 5 #351

build(deps): bump docker/build-push-action from 4 to 5

build(deps): bump docker/build-push-action from 4 to 5 #351

Workflow file for this run

name: Pre-commit check
# Controls when the workflow will run
on:
pull_request:
branches: [main]
workflow_dispatch:
env:
TF_DOCS_VERSION: v0.16.0
TFLINT_VERSION: v0.44.1
TF_VERSION: "1.3.4"
HELM_DOCS_VERSION: "1.11.0"
permissions:
contents: read
jobs:
pre-commit:
name: Pre-commit check
runs-on: ubuntu-latest
steps:
- name: Checkout git repository
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- uses: actions/cache@v3
name: Cache plugin dir
with:
path: ~/.tflint.d/plugins
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }}
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.1.7
- name: Setup TFLint
uses: terraform-linters/setup-tflint@v3
with:
tflint_version: ${{env.TFLINT_VERSION}}
- name: Setup Terraform docs
run: |
wget https://github.com/terraform-docs/terraform-docs/releases/download/${{env.TF_DOCS_VERSION}}/terraform-docs-${{env.TF_DOCS_VERSION}}-linux-amd64.tar.gz -O terraform_docs.tar.gz
tar -zxvf terraform_docs.tar.gz terraform-docs
chmod +x terraform-docs
mv terraform-docs /usr/local/bin/
- name: Setup helm-docs
run: |
cd /tmp
wget https://github.com/norwoodj/helm-docs/releases/download/v${{env.HELM_DOCS_VERSION}}/helm-docs_${{env.HELM_DOCS_VERSION}}_Linux_x86_64.tar.gz
tar -xvf helm-docs_${{env.HELM_DOCS_VERSION}}_Linux_x86_64.tar.gz
sudo mv helm-docs /usr/local/sbin
- name: Pre-commit checks
uses: pre-commit/[email protected]
- name: pre-commit-ci-lite
uses: pre-commit-ci/[email protected]
if: always()