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:
# Image related
- variable: image
description: "Docker Image Details"
label: "Docker Image"
group: "Container Images"
schema:
type: dict
......@@ -101,6 +102,7 @@ questions:
- variable: restartPolicy
description: "Restart Policy for workload"
label: "Restart Policy"
group: "Restart Policy"
schema:
type: string
show_if: [["workloadType", "=", "Deployment"]]
......@@ -115,6 +117,7 @@ questions:
- variable: jobRestartPolicy
description: "Restart Policy for workload"
label: "Restart Policy"
group: "Restart Policy"
schema:
type: string
default: "OnFailure"
......@@ -303,6 +306,7 @@ questions:
- variable: hostPortsList
label: "Specify host ports for the workload"
description: "Only use host ports if scaling of a workload is not required"
group: "Networking"
schema:
show_if: [["updateStrategy", "=", "Recreate"]]
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