-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRunfile.yml
More file actions
83 lines (70 loc) · 2.27 KB
/
Runfile.yml
File metadata and controls
83 lines (70 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
tasks:
new:api:
desc: create a new api
requires:
- sh: test -f "PROJECT"
env:
version:
required: true
kind:
required: true
cmd:
- |
kubebuilder create api --version ${version} --kind ${kind} --resource --controller
manifests:
cmd:
- make manifests
- make generate
dev:
# env:
# HELM_JOB_IMAGE: "ghcr.io/kloudlite/kloudlite/operator/workers/helm-job-runner:v1.1.4"
dotenv:
- .secrets/env
cmd:
- make run
build:
env:
CGO_ENABLED: 0
binary_out:
default: "./bin/plugin-helm-controller"
cmd:
- go build -ldflags='-s -w' -o "$binary_out" ./cmd
image:build:
env:
HELM_JOB_IMAGE: "ghcr.io/kloudlite/kloudlite/operator/workers/helm-job-runner:v1.1.4"
image:
required: true
cmd:
- run: go:build
env:
GOARCH: amd64
- run: go:build
env:
GOARCH: arm64
- docker buildx build -t "$image" --output=type=image,compression=zstd,force-compression=true,compression-level=12,push=true --platform linux/amd64,linux/arm64 --build-arg BINARY=./bin/plugin-helm-controller .
image:build:ci:
env:
image:
required: true
cmd:
- docker buildx build -f Dockerfile.ci -t "$image" --output=type=image,compression=zstd,force-compression=true,compression-level=12,push=true --platform linux/amd64 --build-arg BINARY=./bin/plugin-helm-controller .
helm-job-runner:
dir: ./IMAGES/helm-job-runner
env:
image: "ghcr.io/kloudlite/plugin-helm-chart/helm-job-runner"
buildx_cache: "ghcr.io/kloudlite/plugin-helm-chart/helm-job-runner:buildx-cache"
tag:
required: true
cmd:
- docker buildx build -f Dockerfile-nix -t "$image:$tag"
--cache-to type=registry,ref="$buildx_cache",mode=max,compression=zstd,compression-level=12,force-compression=true
--cache-from type=registry,ref="$buildx_cache"
--output=type=image,compression=zstd,force-compression=true,compression-level=12,push=true
--build-context project-root=../..
.
test:
dir: ./internal/controller/helm_chart
env:
HELM_JOB_RUNNER_IMAGE: "ghcr.io/kloudlite/plugin-helm-chart/helm-job-runner:v1.0.0"
cmd:
- ginkgo