Unverified Commit 48e553b4 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by GitHub

Merge pull request #3 from truenas/ci-setup

Add CI job for checking catalog format
parents 4d49433f abfccf34
name: format_validation
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container:
image: ixsystems/catalog_validation:latest
steps:
- uses: actions/checkout@v1
name: Checkout
- name: Validate catalog format
run: |
/bin/bash -c "PWD=${pwd}; /usr/local/bin/catalog_validate validate --path $PWD"
...@@ -51,6 +51,7 @@ questions: ...@@ -51,6 +51,7 @@ questions:
# Image related # Image related
- variable: image - variable: image
description: "Docker Image Details" description: "Docker Image Details"
label: "Docker Image"
group: "Container Images" group: "Container Images"
schema: schema:
type: dict type: dict
...@@ -101,6 +102,7 @@ questions: ...@@ -101,6 +102,7 @@ questions:
- variable: restartPolicy - variable: restartPolicy
description: "Restart Policy for workload" description: "Restart Policy for workload"
label: "Restart Policy" label: "Restart Policy"
group: "Restart Policy"
schema: schema:
type: string type: string
show_if: [["workloadType", "=", "Deployment"]] show_if: [["workloadType", "=", "Deployment"]]
...@@ -115,6 +117,7 @@ questions: ...@@ -115,6 +117,7 @@ questions:
- variable: jobRestartPolicy - variable: jobRestartPolicy
description: "Restart Policy for workload" description: "Restart Policy for workload"
label: "Restart Policy" label: "Restart Policy"
group: "Restart Policy"
schema: schema:
type: string type: string
default: "OnFailure" default: "OnFailure"
...@@ -303,6 +306,7 @@ questions: ...@@ -303,6 +306,7 @@ questions:
- variable: hostPortsList - variable: hostPortsList
label: "Specify host ports for the workload" label: "Specify host ports for the workload"
description: "Only use host ports if scaling of a workload is not required" description: "Only use host ports if scaling of a workload is not required"
group: "Networking"
schema: schema:
show_if: [["updateStrategy", "=", "Recreate"]] show_if: [["updateStrategy", "=", "Recreate"]]
type: list type: list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment