Merge pull request #3 from truenas/ci-setup

Add CI job for checking catalog format
This commit is contained in:
Waqar Ahmed 2020-11-25 20:07:39 +05:00 committed by GitHub
commit 48e553b4f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

17
.github/workflows/format_validation.yml vendored Normal file
View File

@ -0,0 +1,17 @@
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"

View File

@ -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