-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: massive redo of Operator (#295)
* chore: massive redo of Operator * fix bugs with webhooks * fix build ci workflow * fix invalid echo in test workflow * delete redundant webhooks test in api package
- Loading branch information
Showing
75 changed files
with
6,161 additions
and
565 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,37 @@ | ||
name: "Setup Go" | ||
description: "Setup Go with caching" | ||
inputs: | ||
cache-prefix: | ||
description: "Prefix for the cache key" | ||
required: false | ||
default: "go" | ||
disable-cache: | ||
description: "Disable caching" | ||
required: false | ||
default: "false" | ||
go-version: | ||
description: "Version of Go. Default 1.21" | ||
required: false | ||
default: "1.21" | ||
outputs: | ||
go-version: | ||
description: "The installed Go version" | ||
value: ${{ steps.setup-go.outputs.go-version }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- id: setup-go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ inputs.go-version }} | ||
check-latest: true | ||
cache: false | ||
- id: cache-info | ||
if: ${{ inputs.disable-cache != 'true' }} | ||
shell: bash | ||
run: echo path=$(go env GOCACHE) >> $GITHUB_OUTPUT | ||
- uses: actions/cache@v3 | ||
if: ${{ inputs.disable-cache != 'true' }} | ||
with: | ||
path: ${{ steps.cache-info.outputs.path }} | ||
key: ${{ inputs.cache-prefix }}-go-${{ steps.setup-go.outputs.go-version }}-mod-${{ hashFiles('go.sum') }} |
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,32 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Go | ||
id: setup-go | ||
uses: ./.github/actions/setup-go-cache | ||
with: | ||
cache-prefix: go-build | ||
|
||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
distribution: goreleaser | ||
version: v1.22.1 | ||
args: build --snapshot --clean | ||
env: | ||
DOCKER_REPO: "gresearch" | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
DOCKER_BUILDX_BUILDER: "${{ steps.buildx.outputs.name }}" |
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
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.