Skip to content

Commit

Permalink
ci: Add build job for fleetctl
Browse files Browse the repository at this point in the history
Add automatic builds for fleetctl.

Signed-off-by: Heathcliff <[email protected]>
  • Loading branch information
heathcliff26 committed Dec 23, 2024
1 parent 0ebaa68 commit 1eba3a4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
22 changes: 21 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,27 @@ jobs:
cache: false
cmd: "make validate"

build:
build-fleetctl:
uses: heathcliff26/ci/.github/workflows/golang-build.yaml@main
needs:
- lint
- unit-tests
strategy:
fail-fast: false
matrix:
include:
- arch: amd64
- arch: arm64
with:
release: "${{ github.event_name == 'pull_request' && 'dev' || inputs.tag == '' && 'rolling' || inputs.tag }}"
goos: "linux"
goarch: "${{ matrix.arch }}"
artifact: "bin/fleetctl-${{ matrix.arch }}"
artifact-name: "fleetctl-${{ matrix.arch }}"
cmd: "hack/build.sh fleetctl fleetctl-${{ matrix.arch }}"
secrets: inherit

build-fleetlock:
uses: heathcliff26/ci/.github/workflows/build-container.yaml@main
needs:
- lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ jobs:
update: ${{ inputs.update }}
tag: ${{ inputs.tag }}
release-artifacts: "release/*"
artifacts: "{manifests}"
artifacts: "{fleetctl-*,manifests}"
prerelease: ${{ inputs.prerelease }}

0 comments on commit 1eba3a4

Please sign in to comment.