This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| const fs=require('fs'); | |
| const YAML = require('yaml') | |
| input=YAML.parseAllDocuments(fs.readFileSync('/dev/stdin').toString(),{}).map((item)=>item.toJS()); | |
| for (const obj of input) { | |
| kind=obj.kind; | |
| delete obj.kind; | |
| delete obj.apiVersion; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| api-info: | |
| version: <ANY STRING> | |
| title: <ANY STRING> | |
| description: <ANY MARKDOWN TEXT> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run --rm -v /mybox/myfiles:/internal ghcr.io/srfrnk/crd-api-doc-gen:latest /internal/some/path /internal/another/path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const core = require("@actions/core"); | |
| var moment = require('moment'); | |
| function action() { | |
| try { | |
| const time = new Date().toISOString(); | |
| core.setOutput("time", time); | |
| const format = core.getInput('format', { required: false }); | |
| core.setOutput("formattedTime", moment().format(format)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker-push: | |
| docker tag ks:$(GIT_TAG) docker.pkg.github.com/$(REPOSITORY)/ks:$(GIT_TAG) | |
| docker push docker.pkg.github.com/$(REPOSITORY)/ks:$(GIT_TAG) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if v.EnvRef.Name != "" { | |
| value := os.Getenv(v.EnvRef.Name) | |
| return value, nil | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type Var struct { | |
| . | |
| . | |
| . | |
| // EnvRef refers to a variable from the process environment whose value will be extracted for use in | |
| // replacing $(FOO). | |
| EnvRef EnvVar `json:"envref" yaml:"envref"` | |
| } |
NewerOlder