Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci) New way to deploy CertManager CRDs #49

Merged
merged 2 commits into from
Apr 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand All @@ -102,7 +102,12 @@ jobs:
sleep 1
done
- name: Install CertManager v${{ matrix.certManager }}
run: sudo microk8s.kubectl apply -f "https://github.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://github.com/jetstack/cert-manager/release-${shortVersion}/deploy/manifests/00-crds.yaml"
- uses: actions/checkout@v2
- name: go tests
run: |
Expand Down