|
| 1 | +targets: |
| 2 | + - name: linux |
| 3 | + helm: |
| 4 | + src: charts/dhcpdd |
| 5 | + dist: .bin/chart |
| 6 | + dockerManifest: pojntfx/dhcpdd:latest |
| 7 | + platforms: |
| 8 | + - identifier: linux/amd64 |
| 9 | + paths: |
| 10 | + watch: . |
| 11 | + include: (.*)\.go |
| 12 | + assetInImage: /usr/local/bin/dhcpdd |
| 13 | + assetOut: .bin/binaries/dhcpdd-linux-amd64 |
| 14 | + gitRepoRoot: . |
| 15 | + commands: |
| 16 | + generateSources: go generate ./... |
| 17 | + build: GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -tags netgo -ldflags '-extldflags "-static"' -o .bin/binaries/dhcpdd-linux-amd64 cmd/dhcpdd/main.go |
| 18 | + unitTests: go test -v ./... |
| 19 | + integrationTests: .bin/binaries/dhcpdd-linux-amd64 --help |
| 20 | + imageTests: docker run --platform linux/amd64 -e DIBS_TARGET=linux -e TARGETPLATFORM=linux/amd64 pojntfx/dhcpdd:linux-amd64 /usr/local/bin/dhcpdd --help |
| 21 | + chartTests: helm install dhcpdd .bin/chart/dhcpdd-*.tgz && helm delete dhcpdd |
| 22 | + start: | |
| 23 | + if [ "$DIBS_DEBUG" = "true" ]; then |
| 24 | + pkill -9 dlv || true |
| 25 | + pkill -9 dhcpdd || true |
| 26 | + .bin/binaries/dhcpdd-linux-amd64 & |
| 27 | + dlv attach $! --headless --listen=:31441 --api-version=2 --accept-multiclient || true |
| 28 | + else |
| 29 | + .bin/binaries/dhcpdd-linux-amd64 |
| 30 | + fi |
| 31 | + docker: |
| 32 | + build: |
| 33 | + file: Dockerfile |
| 34 | + context: . |
| 35 | + tag: pojntfx/dhcpdd:linux-amd64 |
| 36 | + unitTests: |
| 37 | + file: Dockerfile.unitTests |
| 38 | + context: . |
| 39 | + tag: pojntfx/dhcpdd-unit-tests:linux-amd64 |
| 40 | + integrationTests: |
| 41 | + file: Dockerfile.integrationTests |
| 42 | + context: . |
| 43 | + tag: pojntfx/dhcpdd-integration-tests:linux-amd64 |
| 44 | + chartTests: |
| 45 | + file: Dockerfile.chartTests |
| 46 | + context: . |
| 47 | + tag: pojntfx/dhcpdd-chart-tests:linux-amd64 |
| 48 | + - identifier: linux/arm64 |
| 49 | + paths: |
| 50 | + watch: . |
| 51 | + include: (.*)\.go |
| 52 | + assetInImage: /usr/local/bin/dhcpdd |
| 53 | + assetOut: .bin/binaries/dhcpdd-linux-arm64 |
| 54 | + gitRepoRoot: . |
| 55 | + commands: |
| 56 | + generateSources: go generate ./... |
| 57 | + build: GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -tags netgo -ldflags '-extldflags "-static"' -o .bin/binaries/dhcpdd-linux-arm64 cmd/dhcpdd/main.go |
| 58 | + unitTests: go test -v ./... |
| 59 | + integrationTests: .bin/binaries/dhcpdd-linux-arm64 --help |
| 60 | + imageTests: docker run --platform linux/arm64 -e DIBS_TARGET=linux -e TARGETPLATFORM=linux/arm64 pojntfx/dhcpdd:linux-arm64 /usr/local/bin/dhcpdd --help |
| 61 | + chartTests: helm install dhcpdd .bin/chart/dhcpdd-*.tgz && helm delete dhcpdd |
| 62 | + start: | |
| 63 | + if [ "$DIBS_DEBUG" = "true" ]; then |
| 64 | + pkill -9 dlv || true |
| 65 | + pkill -9 dhcpdd || true |
| 66 | + .bin/binaries/dhcpdd-linux-arm64 & |
| 67 | + dlv attach $! --headless --listen=:31441 --api-version=2 --accept-multiclient || true |
| 68 | + else |
| 69 | + .bin/binaries/dhcpdd-linux-arm64 |
| 70 | + fi |
| 71 | + docker: |
| 72 | + build: |
| 73 | + file: Dockerfile |
| 74 | + context: . |
| 75 | + tag: pojntfx/dhcpdd:linux-arm64 |
| 76 | + unitTests: |
| 77 | + file: Dockerfile.unitTests |
| 78 | + context: . |
| 79 | + tag: pojntfx/dhcpdd-unit-tests:linux-arm64 |
| 80 | + integrationTests: |
| 81 | + file: Dockerfile.integrationTests |
| 82 | + context: . |
| 83 | + tag: pojntfx/dhcpdd-integration-tests:linux-arm64 |
| 84 | + chartTests: |
| 85 | + file: Dockerfile.chartTests |
| 86 | + context: . |
| 87 | + tag: pojntfx/dhcpdd-chart-tests:linux-arm64 |
| 88 | + - name: dhcpdctl-linux |
| 89 | + platforms: |
| 90 | + - identifier: linux/amd64 |
| 91 | + paths: |
| 92 | + watch: . |
| 93 | + include: (.*)\.go |
| 94 | + assetInImage: /usr/local/bin/dhcpdctl |
| 95 | + assetOut: .bin/binaries/dhcpdctl-linux-amd64 |
| 96 | + gitRepoRoot: . |
| 97 | + commands: |
| 98 | + generateSources: go generate ./... |
| 99 | + build: GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -tags netgo -ldflags '-extldflags "-static"' -o .bin/binaries/dhcpdctl-linux-amd64 cmd/dhcpdctl/main.go |
| 100 | + unitTests: go test -v ./... |
| 101 | + integrationTests: .bin/binaries/dhcpdctl-linux-amd64 --help |
| 102 | + start: .bin/binaries/dhcpdctl-linux-amd64 --help |
| 103 | + docker: |
| 104 | + build: |
| 105 | + file: Dockerfile.dhcpdctl |
| 106 | + context: . |
| 107 | + tag: pojntfx/dhcpdctl:linux-amd64 # Only to get the binaries from Docker |
| 108 | + unitTests: |
| 109 | + file: Dockerfile.unitTests |
| 110 | + context: . |
| 111 | + tag: pojntfx/dhcpdctl-unit-tests:linux-amd64 |
| 112 | + integrationTests: |
| 113 | + file: Dockerfile.integrationTests |
| 114 | + context: . |
| 115 | + tag: pojntfx/dhcpdctl-integration-tests:linux-amd64 |
| 116 | + - identifier: linux/arm64 |
| 117 | + paths: |
| 118 | + watch: . |
| 119 | + include: (.*)\.go |
| 120 | + assetInImage: /usr/local/bin/dhcpdctl |
| 121 | + assetOut: .bin/binaries/dhcpdctl-linux-arm64 |
| 122 | + gitRepoRoot: . |
| 123 | + commands: |
| 124 | + generateSources: go generate ./... |
| 125 | + build: GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -tags netgo -ldflags '-extldflags "-static"' -o .bin/binaries/dhcpdctl-linux-arm64 cmd/dhcpdctl/main.go |
| 126 | + unitTests: go test -v ./... |
| 127 | + integrationTests: .bin/binaries/dhcpdctl-linux-arm64 --help |
| 128 | + start: .bin/binaries/dhcpdctl-linux-arm64 --help |
| 129 | + docker: |
| 130 | + build: |
| 131 | + file: Dockerfile.dhcpdctl |
| 132 | + context: . |
| 133 | + tag: pojntfx/dhcpdctl:linux-arm64 # Only to get the binaries from Docker |
| 134 | + unitTests: |
| 135 | + file: Dockerfile.unitTests |
| 136 | + context: . |
| 137 | + tag: pojntfx/dhcpdctl-unit-tests:linux-arm64 |
| 138 | + integrationTests: |
| 139 | + file: Dockerfile.integrationTests |
| 140 | + context: . |
| 141 | + tag: pojntfx/dhcpdctl-integration-tests:linux-arm64 |
| 142 | + - name: dhcpdctl-darwin |
| 143 | + platforms: |
| 144 | + - identifier: darwin/amd64 |
| 145 | + paths: |
| 146 | + watch: . |
| 147 | + include: (.*)\.go |
| 148 | + gitRepoRoot: . |
| 149 | + commands: |
| 150 | + generateSources: go generate ./... |
| 151 | + build: GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -tags netgo -ldflags '-extldflags "-static"' -o .bin/binaries/dhcpdctl-darwin-amd64 cmd/dhcpdctl/main.go |
| 152 | + unitTests: go test -v ./... |
| 153 | + integrationTests: .bin/binaries/dhcpdctl-darwin-amd64 --help |
| 154 | + start: .bin/binaries/dhcpdctl-darwin-amd64 --help |
0 commit comments