Skip to content

Commit

Permalink
Add CI job for helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
kasia-kujawa committed Mar 12, 2021
1 parent fb762f9 commit c791b29
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,44 @@ jobs:
- name: Check logs
working-directory: ./operator
run: make test-examples

deploy-helm-chart:
name: Create resources with sidecars
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: imranismail/setup-kustomize@v1
- uses: AbsaOSS/[email protected]
id: single-cluster
name: Create single k3d Cluster with Registry
with:
cluster-name: "test-cluster"
use-default-registry: true
args: >-
--agents 1
--no-lb
--k3s-server-arg "--no-deploy=traefik,servicelb,metrics-server"
- name: Deploy cert-manager
working-directory: ./operator
run: make deploy-cert-manager
- name: Build and push tailing sidecar image
working-directory: ./sidecar
run: make TAG=registry.localhost:5000/sumologic/tailing-sidecar:test
- name: Build tailing sidecar operator
working-directory: ./operator
run: make docker-build IMG="registry.localhost:5000/sumologic/tailing-sidecar-operator:test"
- name: Push tailing sidecar operator
working-directory: ./operator
run: make docker-push IMG="registry.localhost:5000/sumologic/tailing-sidecar-operator:test"
- name: Deploy Helm chart
uses: WyriHaximus/github-action-helm3@v2
working-directory: ./helm
run: helm upgrade --install test-release ./tailing-sidecar-operator -f tests/values.yaml -n tailing-sidecar-system --create-namespace
- name: Deploy examples
working-directory: ./operator
run: make deploy-examples
- name: Wait for logs to be generated
run: sleep 5
- name: Check logs
working-directory: ./operator
run: make test-examples
9 changes: 9 additions & 0 deletions helm/tests/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
operator:
image:
repository: registry.localhost:5000/sumologic/tailing-sidecar-operator
tag: test

sidecar:
image:
repository: registry.localhost:5000/sumologic/tailing-sidecar
tag: test

0 comments on commit c791b29

Please sign in to comment.