Skip to content

Commit

Permalink
Start setup CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alex60217101990 committed Aug 22, 2022
1 parent fe4362f commit 938b5b8
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
release:
types: [created]

jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.18.5.linux-amd64.tar.gz"
project_path: "."
binary_name: "schema-generator"
extra_files: "./scripts/install.sh"
6 changes: 6 additions & 0 deletions plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: "schema-generator"
version: "0.1.0"
usage: "generate json schema for values yaml"
description: "generate json schema (standard version: https://json-schema.org/draft/2019-09/schema) for values yaml"
ignoreFlags: false
command: "$HELM_PLUGIN_DIR/bin/schema-generator"
1 change: 1 addition & 0 deletions scripts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/tmp-scripts
20 changes: 20 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

depsPath="$(dirname $BASH_SOURCE)"/tmp-scripts
mkdir -p "$depsPath"

curl -J -s \
-H 'Accept: application/vnd.github.v3.raw' \
-o "$depsPath/colors.sh"\
-L 'https://api.github.com/repos/alex60217101990/bash-tools/contents/colors.sh'

curl -J -s \
-H 'Accept: application/vnd.github.v3.raw' \
-o "$depsPath/logger.sh"\
-L 'https://api.github.com/repos/alex60217101990/bash-tools/contents/logger.sh'

. "$depsPath"/logger.sh -c=true

INFO "$(helm3 env | grep HELM_PLUGIN)"


0 comments on commit 938b5b8

Please sign in to comment.