From 522e72b71c420f568dcf1fb18279eba7a954db45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20P=C3=A9ronnet?= Date: Tue, 14 Apr 2020 19:39:08 +0200 Subject: [PATCH] fix(ci) New way to deploy CertManager CRDs. Fix #46 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use release url instead of githubusercontent Signed-off-by: Pierre PĂ©ronnet --- .github/workflows/tests.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5c7e8aea7..c0d46b19d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -76,8 +76,8 @@ jobs: strategy: fail-fast: false matrix: - # https://github.com/jetstack/cert-manager/branches/active - certManager: ["0.12", "0.13", "0.14", "0.15"] + # https://github.com/jetstack/cert-manager/tags + certManager: ["0.12.0", "0.13.1", "0.14.2", "0.15.0-alpha.0"] # https://snapcraft.io/microk8s k8sVersion: ["1.15", "1.16", "1.17"] @@ -102,7 +102,12 @@ jobs: sleep 1 done - name: Install CertManager v${{ matrix.certManager }} - run: sudo microk8s.kubectl apply -f "https://raw.githubusercontent.com/jetstack/cert-manager/release-${{ matrix.certManager }}/deploy/manifests/00-crds.yaml" + run: | + # Try the recet way to install crd or fallback to the old one + version='${{ matrix.certManager }}' + shortVersion=""${version%.*}"" + sudo microk8s.kubectl apply -f "https://github.com/jetstack/cert-manager/releases/download/v${version}/cert-manager.crds.yaml" || + sudo microk8s.kubectl apply -f "https://raw.githubusercontent.com/jetstack/cert-manager/release-${shortVersion}/deploy/manifests/00-crds.yaml" - uses: actions/checkout@v2 - name: go tests run: |