feat: remove alias in commands and add version injection for cli #623
Workflow file for this run
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 images | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| - "*_release" | |
| paths: | |
| - '**/*.go' | |
| push: | |
| branches: | |
| - master | |
| - "*_release" | |
| paths: | |
| - '**/*.go' | |
| env: | |
| GO_VERSION: "1.22" | |
| jobs: | |
| build-images: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Go 1.x | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: go mod vendor | |
| run: go mod vendor | |
| - name: go build ob-operator | |
| run: go build -o bin/manager cmd/operator/main.go | |
| - name: go build oceanbase-dashboard | |
| run: go build -o bin/oceanbase-dashboard cmd/dashboard/main.go | |
| - name: go build oceanbase-cli | |
| run: go build -o bin/obocli cmd/cli/main.go | |