Skip to content

Commit

Permalink
Merge pull request #189 from tokheim/helm-release
Browse files Browse the repository at this point in the history
  • Loading branch information
slok authored Nov 6, 2021
2 parents 820fbb3 + e7e190d commit d0a92cb
Show file tree
Hide file tree
Showing 27 changed files with 36 additions and 4 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release Charts

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.1
with:
charts_dir: deploy/kubernetes/helm
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ description: Base chart for Sloth.
type: application
home: https://github.com/slok/sloth
kubeVersion: ">= 1.19.0-0"
version: 0.3.0
version: 0.3.0
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions docker/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ RUN cd /tmp/cache && \
# Helm testing app.
USER root
RUN mkdir -p /tmp/cache
COPY deploy/kubernetes/helm/tests/go.mod /tmp/cache
COPY deploy/kubernetes/helm/tests/go.sum /tmp/cache
COPY deploy/kubernetes/helm/sloth/tests/go.mod /tmp/cache
COPY deploy/kubernetes/helm/sloth/tests/go.sum /tmp/cache
RUN chown app:app -R /tmp/cache
USER app
RUN cd /tmp/cache && \
Expand Down
2 changes: 1 addition & 1 deletion scripts/check/helm-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
set -o errexit
set -o nounset

cd ./deploy/kubernetes/helm/tests
cd ./deploy/kubernetes/helm/sloth/tests
go test -race -coverprofile=.test_coverage.txt $(go list ./... | grep -v /test/integration )
go tool cover -func=.test_coverage.txt | tail -n1 | awk '{print "Total test coverage: " $3}'

0 comments on commit d0a92cb

Please sign in to comment.