mirror of
https://github.com/vcscsvcscs/OCI-Kubernetes-cluster-with-traefik.git
synced 2025-08-12 22:09:08 +02:00
add half done self managed version
This commit is contained in:
40
.github/workflows/ci.yml
vendored
Normal file
40
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Terraform CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- v*
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
name: Validate
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./example
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Run a Terraform init
|
||||
uses: docker://hashicorp/terraform:light
|
||||
with:
|
||||
entrypoint: terraform
|
||||
args: init
|
||||
|
||||
- name: Run a Terraform validate
|
||||
uses: docker://hashicorp/terraform:light
|
||||
with:
|
||||
entrypoint: terraform
|
||||
args: validate
|
||||
|
||||
- name: Run a Terraform fmt
|
||||
uses: docker://hashicorp/terraform:light
|
||||
with:
|
||||
entrypoint: terraform
|
||||
args: fmt --recursive -check=true --diff ../
|
Reference in New Issue
Block a user