parent
cf3b9f4518
commit
70aff7bed1
4 changed files with 87 additions and 0 deletions
|
@ -15,6 +15,7 @@ env:
|
|||
TF_PLUGIN_CACHE_DIR: ${{ gitea.workspace }}/.terraform.d/plugin-cache
|
||||
TF_IN_AUTOMATION: true
|
||||
TF_CLI_ARGS: "-no-color"
|
||||
NOMAD_ADDR: "${{ vars.NOMAD_ADDR }}"
|
||||
NOMAD_TOKEN: "${{ secrets.NOMAD_TOKEN }}"
|
||||
PG_CONN_STR: "${{ secrets.PG_CONN_STR }}"
|
||||
|
||||
|
@ -44,6 +45,11 @@ jobs:
|
|||
id: plan
|
||||
run: terraform plan -out=tfplan
|
||||
continue-on-error: true
|
||||
- uses: hashicorp/setup-nomad@main
|
||||
- name: Install jq
|
||||
run: sudo apt-get update && sudo apt-get install -y jq
|
||||
- name: Nomad Validate
|
||||
run: terraform show -json tfplan | jq -r '.planned_values.root_module.child_modules[].resources[].values.jobspec' | nomad job validate -json -
|
||||
- uses: actions/github-script@v7
|
||||
if: github.event_name == 'pull_request'
|
||||
env:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue