chore: bump gomplate to v3.24.42 #1467
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Helm Test | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- master | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Kubernetes KinD Cluster | |
uses: container-tools/kind-action@v2 | |
- name: Build and push Docker image | |
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 | |
with: | |
context: . | |
file: ./build/full/Dockerfile | |
push: true | |
tags: localhost:5000/flanksource/canary-checker:latest | |
cache-from: type=registry,ref=docker.io/flanksource/canary-checker | |
- name: Update canary-checker image in helm chart | |
uses: mikefarah/yq@master | |
with: | |
cmd: yq -i e '.global.imageRegistry = "kind-registry:5000"' chart/values.yaml | |
- name: Setup Helm | |
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 | |
with: | |
version: v3.11.3 | |
- name: Package helm chart | |
run: | | |
helm dependency build ./chart | |
helm package ./chart --version 1.0.0 | |
- name: Install helm chart | |
run: "helm install canary-checker canary-checker-1.0.0.tgz -n canary-checker --create-namespace" | |
- name: Wait for 30 seconds | |
run: "kubectl rollout status deploy/canary-checker -n canary-checker --timeout 5m" | |
- name: Check canary-checker pods | |
run: "kubectl describe pods -n canary-checker" | |
- name: Run tests | |
run: ./chart/test.sh canary-checker | |
- name: Check logs | |
run: kubectl logs deploy/canary-checker -n canary-checker | |
if: always() |