Commit 76551d0 1 parent 4cdc836 commit 76551d0 Copy full SHA for 76551d0
File tree 3 files changed +16
-3
lines changed
3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 46
46
autoscaler-agent :
47
47
description : ' autoscaler-agent image'
48
48
value : ${{ jobs.tags.outputs.autoscaler-agent }}
49
+ daemon :
50
+ description : ' neonvm-daemon image'
51
+ value : ${{ jobs.tags.outputs.daemon }}
49
52
50
53
env :
51
54
IMG_CONTROLLER : " neondatabase/neonvm-controller"
79
82
scheduler : ${{ steps.show-tags.outputs.scheduler }}
80
83
autoscaler-agent : ${{ steps.show-tags.outputs.autoscaler-agent }}
81
84
cluster-autoscaler : ${{ steps.show-tags.outputs.cluster-autoscaler }}
85
+ daemon : ${{ steps.show-tags.outputs.daemon}}
82
86
runs-on : ubuntu-latest
83
87
steps :
84
88
- id : show-tags
@@ -241,6 +245,8 @@ jobs:
241
245
push : true
242
246
file : neonvm/daemon/Dockerfile
243
247
tags : ${{ needs.tags.outputs.daemon }}
248
+ build-args : |
249
+ GO_BASE_IMG=${{ env.GO_BASE_IMG }}
244
250
245
251
- name : Generate neonvm-controller build tags
246
252
id : controller-build-tags
Original file line number Diff line number Diff line change 29
29
30
30
env :
31
31
IMG_POSTGRES_16_BULLSEYE : " neondatabase/vm-postgres-16-bullseye"
32
+ IMG_DAEMON : " neondatabase/neonvm-daemon"
32
33
33
34
defaults :
34
35
run :
@@ -38,11 +39,13 @@ jobs:
38
39
tags :
39
40
outputs :
40
41
vm-postgres-16-bullseye : ${{ steps.show-tags.outputs.vm-postgres-16-bullseye }}
42
+ daemon : ${{ steps.show-tags.outputs.daemon }}
41
43
runs-on : ubuntu-latest
42
44
steps :
43
45
- id : show-tags
44
46
run : |
45
47
echo "vm-postgres-16-bullseye=${{ env.IMG_POSTGRES_16_BULLSEYE }}:${{ inputs.tag }}" | tee -a $GITHUB_OUTPUT
48
+ echo "daemon=${{ env.IMG_DAEMON }}:${{ inputs.tag }}" | tee -a $GITHUB_OUTPUT
46
49
47
50
build :
48
51
# nb: use format(..) to catch both inputs.skip = true AND inputs.skip = 'true'.
81
84
82
85
- name : build ${{ needs.tags.outputs.vm-postgres-16-bullseye }}
83
86
run : |
84
- ./bin/vm-builder -src postgres:16-bullseye -spec tests/e2e/image-spec.yaml -dst ${{ needs.tags.outputs.vm-postgres-16-bullseye }}
87
+ ./bin/vm-builder -src postgres:16-bullseye -spec tests/e2e/image-spec.yaml -dst ${{ needs.tags.outputs.vm-postgres-16-bullseye }} -daemon-image ${{ needs.tags.outputs.daemon }}
85
88
- name : docker push ${{ needs.tags.outputs.vm-postgres-16-bullseye }}
86
89
run : |
87
90
docker push ${{ needs.tags.outputs.vm-postgres-16-bullseye }}
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ build: fmt vet bin/vm-builder ## Build all neonvm binaries.
133
133
GOOS=linux go build -o bin/runner neonvm/runner/* .go
134
134
135
135
.PHONY : bin/vm-builder
136
- bin/vm-builder : docker-build-daemon # # Build vm-builder binary.
136
+ bin/vm-builder : # # Build vm-builder binary.
137
137
GOOS=linux CGO_ENABLED=0 go build -o bin/vm-builder -ldflags " -X main.Version=${GIT_INFO} -X main.NeonvmDaemonImage=${IMG_DAEMON} " neonvm/tools/vm-builder/main.go
138
138
139
139
.PHONY : run
@@ -185,7 +185,11 @@ docker-build-runner: docker-build-go-base ## Build docker image for NeonVM runne
185
185
186
186
.PHONY : docker-build-daemon
187
187
docker-build-daemon : # # Build docker image for NeonVM daemon.
188
- docker build -t $(IMG_DAEMON ) -f neonvm/daemon/Dockerfile .
188
+ docker build \
189
+ --tag $(IMG_DAEMON ) \
190
+ --build-arg GO_BASE_IMG=$(GO_BASE_IMG ) \
191
+ --file neonvm/daemon/Dockerfile \
192
+ .
189
193
190
194
.PHONY : docker-build-vxlan-controller
191
195
docker-build-vxlan-controller : docker-build-go-base # # Build docker image for NeonVM vxlan controller
You can’t perform that action at this time.
0 commit comments