https://github.com/evryfs/helm-ephemeral-action
Github action for ephemeral helm releases
https://github.com/evryfs/helm-ephemeral-action
github-action github-actions
Last synced: 6 months ago
JSON representation
Github action for ephemeral helm releases
- Host: GitHub
- URL: https://github.com/evryfs/helm-ephemeral-action
- Owner: evryfs
- License: apache-2.0
- Created: 2020-04-27T11:21:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-12T22:52:40.000Z (almost 3 years ago)
- Last Synced: 2025-10-03T07:07:38.538Z (9 months ago)
- Topics: github-action, github-actions
- Language: TypeScript
- Size: 3.16 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README

# Ephemeral helm chart installs
Use this action to install helm charts during the build which will be deleted in the post-step :rocket:
This is useful for temporary installs of databases, messaging systems and other infra required for integration-testing.
## Usage
```yaml
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
# install helm
- uses: azure/setup-helm@v1
# have a k8s cluster, normally you'd like to install on your rig
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.0.0-rc.1
with:
node_image: kindest/node:v1.17.2
# install postgresql chart
- id: postgresql
uses: evryfs/helm-ephemeral-action@master
with:
repo: https://charts.bitnami.com/bitnami
chart: postgresql
helm: 'helm' # optional, default value is 'helm'
args: '--wait --timeout 2m' #optional, default value is '--wait --timeout 2m' in order to wait for the chart-install to stabilize into ready state
- name: Run build
env:
# the release is named -- so that several installs of same chart can go into same namespace w/o interfering
POSTGRESQL_ADDR: ${{ steps.postgresql.outputs.releaseName }}
run: |
# run some test which will use lookup the postgresql endpoint from env var POSTGRESQL_ADDR
mvn -gs /settings-xml/settings.xml --fail-at-end -Dintegration-test=true -Dflyway=true -Denv=ci -Dbatch-test=true clean install surefire-report:report-only -Daggregate=true
# no need for special actions at end, the release will be deleted in the jobs's post-step: https://github.community/t5/GitHub-Actions/About-post-in-an-Action/td-p/41973
```