Skip to content

Commit

Permalink
chore: cleanup and tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Meissner committed Oct 14, 2024
1 parent 78d0ce8 commit cda8f64
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ build-linux: ## Builds the client binary for the specified linux architecture.
build-windows: ## Builds the client binary for the specified windows architecture.
CGO_ENABLED=0 GOOS=windows GOARCH=$(ARCH) go build -o bin/aks-secure-tls-bootstrap-client-$(ARCH).exe cmd/client/main.go

.PHONY: dalec-linux
dalec-linux: ## Build and package linux client binaries with Dalec. https://azure.github.io/dalec/targets#available-targets
docker build -f build/aks-secure-tls-bootstrap-client.yaml --target=azlinux3/rpm --output=_output .

.PHONY: dalec-windows
dalec-windows: ## Build and package windows client binaries with Dalec.
docker build -f build/aks-secure-tls-bootstrap-client.yaml --target=windowscross/zip --output=_output .

##@ Util

# go-get-tool will 'go get' any package $2 and install it to $1.
Expand Down
43 changes: 43 additions & 0 deletions client/build/aks-secure-tls-bootstrap-client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# syntax=ghcr.io/azure/dalec/frontend:latest

name: aks-secure-tls-bootstrap-client
version: v0.1.0~alpha.4
revision: 1
license: MIT
description: AKS secure TLS bootstrapping client

sources:
src:
path: client
generate:
- gomod: {}
git:
url: https://github.com/Azure/aks-secure-tls-bootstrap.git
commit: "client/v0.1.0-alpha.4"

dependencies:
build:
golang:

build:
env:
CGO_ENABLED: "0"
steps:
- command: |
cd src
make build-all
artifacts:
binaries:
src/bin/aks-secure-tls-bootstrap-client-amd64:
src/bin/aks-secure-tls-bootstrap-client-arm64:
src/bin/aks-secure-tls-bootstrap-client-amd64.exe:
src/bin/aks-secure-tls-bootstrap-client-arm64.exe:

tests:
- name: check bin
files:
/usr/bin/aks-secure-tls-bootstrap-client-amd64:
permissions: 0755
/usr/bin/aks-secure-tls-bootstrap-client-arm64:
permissions: 0755

0 comments on commit cda8f64

Please sign in to comment.