-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: swap Makefile for Maru (#602)
- Loading branch information
Showing
19 changed files
with
258 additions
and
91 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,13 @@ | ||
name: Install UDS CLI | ||
description: installs uds-cli from brew | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Set up Homebrew | ||
uses: Homebrew/actions/setup-homebrew@4b34604e75af8f8b23b454f0b5ffb7c5d8ce0056 # master | ||
|
||
- name: Install UDS CLI | ||
shell: bash | ||
run: | | ||
brew tap defenseunicorns/tap | ||
brew install uds |
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
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
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,81 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# SPDX-FileCopyrightText: 2023-Present The UDS Authors | ||
|
||
includes: | ||
- test: tasks/tests.yaml | ||
- schema: tasks/schema.yaml | ||
- dev: tasks/dev.yaml | ||
|
||
tasks: | ||
# build tasks | ||
- name: get-versions | ||
description: gets versions of UDS CLI + vendored tools | ||
actions: | ||
- cmd: go list -f '{{.Version}}' -m github.com/derailed/k9s | ||
mute: true | ||
setVariables: | ||
- name: K9S_VERSION | ||
- cmd: go list -f '{{.Version}}' -m github.com/anchore/syft | ||
mute: true | ||
setVariables: | ||
- name: SYFT_VERSION | ||
- cmd: go list -f '{{.Version}}' -m github.com/google/go-containerregistry | ||
mute: true | ||
setVariables: | ||
- name: CRANE_VERSION | ||
- cmd: go list -f '{{.Version}}' -m github.com/mholt/archiver/v3 | ||
mute: true | ||
setVariables: | ||
- name: ARCHIVER_VERSION | ||
- cmd: go list -f '{{.Version}}' -m helm.sh/helm/v3 | ||
mute: true | ||
setVariables: | ||
- name: HELM_VERSION | ||
- cmd: git describe --tags 2>/dev/null || echo "UnknownVersion" | ||
mute: true | ||
setVariables: | ||
- name: CLI_VERSION | ||
|
||
- name: build-args | ||
description: generates the build args for building UDS CLI | ||
actions: | ||
- cmd: | | ||
cat <<EOF | ||
-s -w -X 'github.com/defenseunicorns/uds-cli/src/config.CLIVersion=${CLI_VERSION}' \ | ||
-X 'github.com/defenseunicorns/zarf/src/config.ActionsCommandZarfPrefix=zarf' \ | ||
-X 'github.com/derailed/k9s/cmd.version=${K9S_VERSION}' \ | ||
-X 'github.com/google/go-containerregistry/cmd/crane/cmd.Version=${CRANE_VERSION}' \ | ||
-X 'github.com/defenseunicorns/zarf/src/cmd/tools.syftVersion=${SYFT_VERSION}' \ | ||
-X 'github.com/defenseunicorns/zarf/src/cmd/tools.archiverVersion=${ARCHIVER_VERSION}' \ | ||
-X 'github.com/defenseunicorns/zarf/src/cmd/tools.helmVersion=${HELM_VERSION}' | ||
EOF | ||
setVariables: | ||
- name: BUILD_ARGS | ||
- name: build-cli-linux-amd | ||
description: build the CLI for Linux AMD64 | ||
actions: | ||
- task: get-versions | ||
- task: build-args | ||
- cmd: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="${BUILD_ARGS}" -o build/uds main.go | ||
|
||
- name: build-cli-linux-arm | ||
description: build the CLI for Linux ARM64 | ||
actions: | ||
- task: get-versions | ||
- task: build-args | ||
- cmd: CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="${BUILD_ARGS}" -o build/uds-arm main.go | ||
|
||
- name: build-cli-mac-intel | ||
description: build the CLI for Mac Intel | ||
actions: | ||
- task: get-versions | ||
- task: build-args | ||
- cmd: GOOS=darwin GOARCH=amd64 go build -ldflags="${BUILD_ARGS}" -o build/uds-mac-intel main.go | ||
|
||
- name: build-cli-mac-apple | ||
description: build the CLI for Mac Apple | ||
actions: | ||
- task: get-versions | ||
- task: build-args | ||
- cmd: GOOS=darwin GOARCH=arm64 go build -ldflags="${BUILD_ARGS}" -o build/uds-mac-apple main.go |
Oops, something went wrong.