cli: store kubernetes version as strong type in config #6318
Workflow file for this run
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
# Build Constellation binaries as quality control | |
name: Build Constellation binaries | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- "release/**" | |
paths: | |
- "**.go" | |
- "**/go.mod" | |
- "**/go.sum" | |
pull_request: | |
paths: | |
- "**.go" | |
- "**/go.mod" | |
- "**/go.sum" | |
jobs: | |
build-binaries: | |
runs-on: [self-hosted, bazel-cached] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
with: | |
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} | |
- name: Setup bazel | |
uses: ./.github/actions/setup_bazel | |
with: | |
useCache: "true" | |
buildBuddyApiKey: ${{ secrets.BUILDBUDDY_ORG_API_KEY }} | |
- name: Build all | |
shell: bash | |
env: | |
bootstrapper: "//bootstrapper/cmd/bootstrapper:bootstrapper_linux_amd64" | |
debugd: "//debugd/cmd/debugd:debugd_linux_amd64" | |
cdbg: "//debugd/cmd/cdbg:all" | |
disk_mapper: "//disk-mapper/cmd:disk-mapper_linux_amd64" | |
measurement_reader: "//measurement-reader/cmd:measurement-reader_linux_amd64" | |
cli: "//cli:all" | |
run: | | |
bazel build \ | |
"${bootstrapper}" \ | |
"${debugd}" \ | |
"${cdbg}" \ | |
"${disk_mapper}" \ | |
"${measurement_reader}" \ | |
"${cli}" |