feat: Remove Nomad validation step in plan-and-apply workflow

This commit is contained in:
Ben Martin 2024-08-04 12:20:30 +00:00
parent 8b7dc11327
commit cd88bac77d
Signed by: ben
GPG key ID: 859A655FCD290E4A
5 changed files with 35 additions and 29 deletions

View file

@ -45,9 +45,6 @@ jobs:
id: plan id: plan
run: terraform plan -out=tfplan run: terraform plan -out=tfplan
continue-on-error: true continue-on-error: true
- uses: hashicorp/setup-nomad@main
- 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 - uses: actions/github-script@v7
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
env: env:

View file

@ -22,11 +22,13 @@
], ],
"logging": { "logging": {
"type": "elastic/elastic-logging-plugin:8.14.3", "type": "elastic/elastic-logging-plugin:8.14.3",
"config": { "config": [
"hosts": "http://localhost:9200", {
"user": "docker_writer", "hosts": "http://localhost:9200",
"password": "oi*YWZSP_Ukd0y+pQ7EB" "user": "docker_writer",
} "password": "oi*YWZSP_Ukd0y+pQ7EB"
}
]
} }
}, },
"Env": { "Env": {
@ -61,11 +63,13 @@
], ],
"logging": { "logging": {
"type": "elastic/elastic-logging-plugin:8.14.3", "type": "elastic/elastic-logging-plugin:8.14.3",
"config": { "config": [
"hosts": "http://localhost:9200", {
"user": "docker_writer", "hosts": "http://localhost:9200",
"password": "oi*YWZSP_Ukd0y+pQ7EB" "user": "docker_writer",
} "password": "oi*YWZSP_Ukd0y+pQ7EB"
}
]
} }
}, },
"Env": { "Env": {

View file

@ -24,11 +24,13 @@
], ],
"logging": { "logging": {
"type": "elastic/elastic-logging-plugin:8.14.3", "type": "elastic/elastic-logging-plugin:8.14.3",
"config": { "config": [
"hosts": "http://localhost:9200", {
"user": "docker_writer", "hosts": "http://localhost:9200",
"password": "oi*YWZSP_Ukd0y+pQ7EB" "user": "docker_writer",
} "password": "oi*YWZSP_Ukd0y+pQ7EB"
}
]
} }
}, },
"Templates": [ "Templates": [

View file

@ -39,11 +39,13 @@
], ],
"logging": { "logging": {
"type": "elastic/elastic-logging-plugin:8.14.3", "type": "elastic/elastic-logging-plugin:8.14.3",
"config": { "config": [
"hosts": "http://localhost:9200", {
"user": "docker_writer", "hosts": "http://localhost:9200",
"password": "oi*YWZSP_Ukd0y+pQ7EB" "user": "docker_writer",
} "password": "oi*YWZSP_Ukd0y+pQ7EB"
}
]
} }
}, },
"Env": { "Env": {
@ -74,7 +76,6 @@
"traefik.http.routers.jellyfin.entrypoints=websecure", "traefik.http.routers.jellyfin.entrypoints=websecure",
"traefik.http.routers.jellyfin.rule=Host(`jellyfin.brmartin.co.uk`)" "traefik.http.routers.jellyfin.rule=Host(`jellyfin.brmartin.co.uk`)"
] ]
} }
], ],
"Networks": [ "Networks": [

View file

@ -30,11 +30,13 @@
], ],
"logging": { "logging": {
"type": "elastic/elastic-logging-plugin:8.14.3", "type": "elastic/elastic-logging-plugin:8.14.3",
"config": { "config": [
"hosts": "http://localhost:9200", {
"user": "docker_writer", "hosts": "http://localhost:9200",
"password": "oi*YWZSP_Ukd0y+pQ7EB" "user": "docker_writer",
} "password": "oi*YWZSP_Ukd0y+pQ7EB"
}
]
} }
}, },
"Resources": { "Resources": {