diff --git a/.jenkins/modules/Publish/Publish.groovy b/.jenkins/modules/Publish/Publish.groovy index f504d3dd5d..608de67f81 100644 --- a/.jenkins/modules/Publish/Publish.groovy +++ b/.jenkins/modules/Publish/Publish.groovy @@ -21,6 +21,7 @@ dir ('build/docker/deploy') { sh 'docker-compose build --force-rm proxy' sh 'docker-compose push proxy' + sh 'docker pull registry.zilliz.com/milvus-distributed/milvus-distributed-dev:latest || true' sh 'docker pull ${SOURCE_REPO}/querynode:${SOURCE_TAG} || true' sh 'docker-compose build --force-rm querynode' sh 'docker-compose push querynode' diff --git a/build/ci/jenkins/pod/docker-pod.yaml b/build/ci/jenkins/pod/docker-pod.yaml index 1f88a14f38..acbf602ee8 100644 --- a/build/ci/jenkins/pod/docker-pod.yaml +++ b/build/ci/jenkins/pod/docker-pod.yaml @@ -7,13 +7,10 @@ metadata: spec: containers: - name: publish-images - image: registry.zilliz.com/library/docker:v1.1.0 + image: registry.zilliz.com/library/dind-compose:v0.1 imagePullPolicy: Always securityContext: privileged: true - command: - - cat - tty: true resources: limits: memory: "8Gi" @@ -22,12 +19,11 @@ spec: memory: "2Gi" cpu: "1" volumeMounts: - - name: docker-sock - mountPath: /var/run/docker.sock + - name: docker-graph-storage + mountPath: /var/lib/docker volumes: - - name: docker-sock - hostPath: - path: /var/run/docker.sock + - name: docker-graph-storage + emptyDir: {} tolerations: - key: dedicated operator: Equal diff --git a/githooks/README.md b/githooks/README.md new file mode 100644 index 0000000000..205054c5c3 --- /dev/null +++ b/githooks/README.md @@ -0,0 +1,6 @@ +**If you want to use git hooks, you need to install hooks first!** + +run +```shell script +git hooks install +``` \ No newline at end of file diff --git a/githooks/pre-commit/fmt b/githooks/pre-commit/fmt new file mode 100755 index 0000000000..6ade24db38 --- /dev/null +++ b/githooks/pre-commit/fmt @@ -0,0 +1,3 @@ +#! /bin/bash + +make fmt diff --git a/githooks/pre-push/verifiers b/githooks/pre-push/verifiers new file mode 100755 index 0000000000..d74022e932 --- /dev/null +++ b/githooks/pre-push/verifiers @@ -0,0 +1,3 @@ +#! /bin/bash + +make verifiers