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

changed directory structure and added helm-release #122

Merged
merged 4 commits into from
Dec 1, 2022
Merged
Show file tree
Hide file tree
Changes from 3 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
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Get repositories
uses: hiberbee/github-action-helm@1.5.0
- name: Install Helm
uses: azure/setup-helm@v3
with:
helm: repo list
version: v3.10.0

- name: Run a one-line script
run: cd audittail-helm-library/tests && helm dependency update ./consumerapp && helm template consumerapp ./consumerapp/ --debug
run: cd charts/audittail/tests && helm dependency update ./consumerapp && helm template consumerapp ./consumerapp/ --debug
34 changes: 34 additions & 0 deletions .github/workflows/helm-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release Charts

on:
push:
branches:
- master

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

- name: Configure Git
run: |
git config user.name "hnadiminti-equinix"
git config user.email "hari.nadiminti@eu.equinix.com"
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: v3.10.0

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.4.1
with:
charts_dir: charts
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
6 changes: 0 additions & 6 deletions audittail-helm-library/tests/consumerapp/Chart.lock

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Kubernetes container args
Kubernetes container arguments
*/}}
{{- define "audittail.args" -}}
- '-f'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ audittail log path


{{- define "audittail.image" -}}
{{- printf "ghcr.io/metal-toolbox/audittail:v0.5.1" -}}
{{- printf "ghcr.io/metal-toolbox/audittail:v0.1.7" -}}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this back to using an older release?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry 👎 updating now :-(

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's my bad..updated it new version and ran the pipeline.

{{- end -}}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ appVersion: "1.16.0"
dependencies:
- name: audittail
version: 1.0.0
repository: file://../../../audittail-helm-library
repository: file://../../../audittail