Skip to content

Commit

Permalink
Merge pull request #66 from cobbler/host-signatures
Browse files Browse the repository at this point in the history
Host signatures in this repo
  • Loading branch information
SchoolGuy committed Sep 24, 2023
2 parents e140643 + 36261be commit eeb4ba0
Show file tree
Hide file tree
Showing 9 changed files with 2,921 additions and 35 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Deploy to pages
on:
push:
branches:
- main
jobs:
deploy-to-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: libcobblersignatures/data
target-folder: data/
40 changes: 6 additions & 34 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,56 +15,28 @@ jobs:
name: Website V2.x.x
steps:
- uses: actions/checkout@v3
with:
path: libcobblersignatures
- uses: actions/checkout@v3
with:
repository: "cobbler/cobbler.github.io"
path: cobbler-github-io
- name: Validate JSON
uses: nhalstead/[email protected]
with:
schema: ./libcobblersignatures/docs/schema_v1.json
jsons: ./cobbler-github-io/signatures/${{ matrix.version }}/latest.json
schema: ./libcobblersignatures/data/v1/schema.json
jsons: ./libcobblersignatures/data/v1/distro_signatures.json
verify-json-validation-website-3-0-x:
runs-on: ubuntu-latest
name: Website V3.0.x
steps:
- uses: actions/checkout@v3
with:
path: libcobblersignatures
- uses: actions/checkout@v3
with:
repository: "cobbler/cobbler.github.io"
path: cobbler-github-io
- name: Validate JSON
uses: nhalstead/[email protected]
with:
schema: ./libcobblersignatures/docs/schema_v2.json
jsons: ./cobbler-github-io/signatures/3.0.x/latest.json
schema: ./libcobblersignatures/data/v2/schema.json
jsons: ./libcobblersignatures/data/v2/distro_signatures.json
verify-json-validation-website-latest:
runs-on: ubuntu-latest
name: Website V3.0.x
steps:
- uses: actions/checkout@v3
with:
path: libcobblersignatures
- uses: actions/checkout@v3
with:
repository: "cobbler/cobbler.github.io"
path: cobbler-github-io
- name: Validate JSON
uses: nhalstead/[email protected]
with:
schema: ./libcobblersignatures/docs/schema_v2.json
jsons: ./cobbler-github-io/signatures/latest.json
verify-json-validation-v2-local:
runs-on: ubuntu-latest
name: Local Repository V2
steps:
- uses: actions/checkout@v3
- name: Validate JSON
uses: nhalstead/[email protected]
with:
schema: ./docs/schema_v2.json
jsons: ./libcobblersignatures/config/distro_signatures.json
schema: ./libcobblersignatures/data/v2/schema.json
jsons: ./libcobblersignatures/data/v2/distro_signatures.json
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,17 @@ This library should be the interface for all applications using cobbler signatur

Can be found in our Docs: <https://libcobblersignatures.readthedocs.io>

## Schema and Examples

The JSON Schema and an example can be found at

* <https://cobbler.github.io/libcobblersignatures/data/<version>/schema.json >
* <https://cobbler.github.io/libcobblersignatures/data/<version>/distro_signatures.json >


| version | cobbler_version |
|---------|-----------------|
| v1 | v2.x.x |
| v2 | v3.0.0 - latest |


1 change: 1 addition & 0 deletions changelog.d/57.changed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Refactoring for hosting of distro signatures at cobbler.github.io and added them to package as data
Loading

0 comments on commit eeb4ba0

Please sign in to comment.