-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from vshn/common-repo
Merge gRPC server with composition functions, api server and controllers together
- Loading branch information
Showing
171 changed files
with
13,815 additions
and
3,611 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request: {} | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
go-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Determine Go version from go.mod | ||
run: echo "GO_VERSION=$(go mod edit -json | jq -r .Go)" >> $GITHUB_ENV | ||
|
||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Run build | ||
run: make build |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
antora: | ||
runs-on: ubuntu-latest | ||
if: ${{ contains(github.ref, 'tags') }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Configure Git | ||
run: | | ||
git config user.name "Antora via GitHub Actions" | ||
git config user.email "actions@github.com" | ||
- name: Parse semver string | ||
id: semver | ||
uses: booxmedialtd/ws-action-parse-semver@v1 | ||
with: | ||
input_string: ${{ github.ref }} | ||
version_extractor_regex: '\/v(.*)$' | ||
- name: Set variables | ||
run: | | ||
echo "MINOR_VERSION=${{ steps.semver.outputs.major }}.${{ steps.semver.outputs.minor }}" >> $GITHUB_ENV | ||
echo "BRANCH_NAME=docs/v${{ steps.semver.outputs.major }}.${{ steps.semver.outputs.minor }}" >> $GITHUB_ENV | ||
- name: Set branch name for Prerelease | ||
if: ${{ steps.semver.outputs.prerelease != '' }} | ||
run: echo "BRANCH_NAME=${{ env.BRANCH_NAME }}-rc" >> $GITHUB_ENV | ||
|
||
- name: Checkout remote branch if exists | ||
run: git checkout ${{ env.BRANCH_NAME }} | ||
continue-on-error: true | ||
- name: Rebase if possible | ||
run: git rebase ${GITHUB_REF##*/} ${{ env.BRANCH_NAME }} | ||
continue-on-error: true | ||
- name: Create new branch if not existing | ||
run: git switch --create ${{ env.BRANCH_NAME }} | ||
continue-on-error: true | ||
|
||
- name: Patch Antora file for Release | ||
run: yq eval 'del(.prerelease) | del (.display_version) | .version = "${{ env.MINOR_VERSION }}"' -i docs/antora.yml | ||
if: ${{ steps.semver.outputs.prerelease == '' }} | ||
- name: Patch Antora file for Prerelease | ||
run: yq eval 'del (.display_version) | .version = "${{ env.MINOR_VERSION }}", .prerelease = "-${{ steps.semver.outputs.prerelease }}"' -i docs/antora.yml | ||
if: ${{ steps.semver.outputs.prerelease != '' }} | ||
|
||
- name: Commit | ||
run: git commit --all --message "Update version for Antora" | ||
continue-on-error: true | ||
- name: Push | ||
run: git push --atomic --force --set-upstream origin ${{ env.BRANCH_NAME }} | ||
|
||
- name: Cleanup prerelease branch if existing | ||
if: ${{ steps.semver.outputs.prerelease == '' }} | ||
run: git push origin --delete ${{ env.BRANCH_NAME }}-rc | ||
continue-on-error: true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,4 @@ jobs: | |
${{ runner.os }}-go- | ||
- name: Run linters | ||
run: make generate lint | ||
run: make lint |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.