Skip to content

Commit cdb619c

Browse files
authored
Kubernetes CI: build latest vineyardd image from source (#1167)
What do these changes do? ------------------------- as titled, avoid using stale image to run CI. Related issue number -------------------- Address issue discussed in #1161 (comment) Signed-off-by: Tao He <[email protected]>
1 parent 5ea8e99 commit cdb619c

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/vineyard-operator.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ jobs:
149149
run: |
150150
make -C docker build-python-dev
151151
152+
- name: Generate the vineyardd image for tests
153+
if: ${{ matrix.job != 'release' }}
154+
run: |
155+
docker build . -f docker/Dockerfile.vineyardd -t vineyardcloudnative/vineyardd:alpine-latest
156+
152157
- name: e2e-tests-assembly-local
153158
if: ${{ matrix.job == 'e2e-tests-assembly-local' }}
154159
run: |

k8s/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ install-vineyard-operator:
9494
# install the vineyard cluster and wait for ready
9595
install-vineyard-cluster:
9696
@echo "Installing vineyard cluster..."
97+
@docker tag vineyardcloudnative/vineyardd:alpine-latest localhost:5001/vineyardd:alpine-latest
98+
@docker push localhost:5001/vineyardd:alpine-latest
9799
@kubectl apply -f test/e2e/vineyardd.yaml --kubeconfig=/tmp/e2e-k8s.config
98100
@kubectl wait vineyardd/vineyardd-sample --for condition=Available -n vineyard-system --timeout=300s --kubeconfig=/tmp/e2e-k8s.config
99101
@echo "Vineyard cluster Ready"

k8s/test/e2e/vineyardd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
type: ClusterIP
2828
port: 9600
2929
vineyardConfig:
30-
image: ghcr.io/v6d-io/v6d/vineyardd:alpine-latest
30+
image: localhost:5001/vineyardd:alpine-latest
3131
imagePullPolicy: IfNotPresent
3232
# Users can define their own plugin image here,
3333
# the next images are only for kubernetes CI test.

0 commit comments

Comments
 (0)