From d90c8b398eec6c167da66d5bda2a3c35868de716 Mon Sep 17 00:00:00 2001 From: yue9944882 <291271447@qq.com> Date: Wed, 16 Sep 2020 10:26:33 +0800 Subject: [PATCH] fixes codegen ci test --- .github/workflows/maven.yml | 1 + client-java-contrib/cert-manager/update.sh | 6 ++++-- client-java-contrib/prometheus-operator/update.sh | 6 ++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 78dc145821..626db3bd38 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -72,6 +72,7 @@ jobs: - 5000:5000 name: CRD Java Models Code Generation steps: + - uses: actions/checkout@v2 - name: Publish to Registry uses: elgohr/Publish-Docker-Github-Action@master with: diff --git a/client-java-contrib/cert-manager/update.sh b/client-java-contrib/cert-manager/update.sh index 838c893e5f..23c4df70e1 100755 --- a/client-java-contrib/cert-manager/update.sh +++ b/client-java-contrib/cert-manager/update.sh @@ -16,8 +16,10 @@ # This script generates the model classes from a released version of cert-manager CRDs # under src/main/java/io/cert/manager/models. -IMAGE_NAME=${IMAGE_NAME:docker.pkg.github.com/kubernetes-client/java/crd-model-gen} -IMAGE_TAG=${IMAGE_TAG:v1.0.2} +DEFAULT_IMAGE_NAME=docker.pkg.github.com/kubernetes-client/java/crd-model-gen +DEFAULT_IMAGE_TAG=v1.0.2 +IMAGE_NAME=${IMAGE_NAME:=$DEFAULT_IMAGE_NAME} +IMAGE_TAG=${IMAGE_TAG:=$DEFAULT_IMAGE_TAG} # a crdgen container is run in a way that: # 1. it has access to the docker daemon on the host so that it is able to create sibling container on the host diff --git a/client-java-contrib/prometheus-operator/update.sh b/client-java-contrib/prometheus-operator/update.sh index 2f1390cd29..20b14989d6 100755 --- a/client-java-contrib/prometheus-operator/update.sh +++ b/client-java-contrib/prometheus-operator/update.sh @@ -16,8 +16,10 @@ # This script generates the model classes from a released version of cert-manager CRDs # under src/main/java/io/cert/manager/models. -IMAGE_NAME=${IMAGE_NAME:docker.pkg.github.com/kubernetes-client/java/crd-model-gen} -IMAGE_TAG=${IMAGE_TAG:v1.0.2} +DEFAULT_IMAGE_NAME=docker.pkg.github.com/kubernetes-client/java/crd-model-gen +DEFAULT_IMAGE_TAG=v1.0.2 +IMAGE_NAME=${IMAGE_NAME:=$DEFAULT_IMAGE_NAME} +IMAGE_TAG=${IMAGE_TAG:=$DEFAULT_IMAGE_TAG} # a crdgen container is run in a way that: # 1. it has access to the docker daemon on the host so that it is able to create sibling container on the host