Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/romnn/helm-deploy-action
deploy your helm chart to k8s
https://github.com/romnn/helm-deploy-action
actions ci-cd deployment helm k8s
Last synced: about 2 months ago
JSON representation
deploy your helm chart to k8s
- Host: GitHub
- URL: https://github.com/romnn/helm-deploy-action
- Owner: romnn
- License: mit
- Created: 2021-01-13T20:00:10.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-16T16:49:51.000Z (9 months ago)
- Last Synced: 2024-04-16T20:58:16.160Z (9 months ago)
- Topics: actions, ci-cd, deployment, helm, k8s
- Language: TypeScript
- Homepage:
- Size: 747 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## helm deploy action
GitHub action to deploy a helm chart to kubernetes using GitHub actions.
#### Example 1 (helm upgrade, public chart)
```yaml
# .github/workflows/deploy.yml
name: Deploy
on: ['deployment']jobs:
deployment:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v1- name: 'Deploy'
uses: 'romnn/helm-deploy-action@master'
with:
command: 'upgrade'
release: 'my-release'
chart: 'nginx-stable/nginx-ingress'
repo: 'https://helm.nginx.com/stable'
repo-alias: 'nginx-stable'
namespace: 'default'
github-token: '${{ secrets.GITHUB_TOKEN }}'
values: |
foo: bar
value-files: >-
[
"values.yaml",
"values.production.yaml"
]
env:
KUBECONFIG_FILE: '${{ secrets.KUBECONFIG }}'
```#### Value file interpolation
The following syntax allows variables to be used in value files:
- `${{ secrets.KEY }}`: References secret variables passed in the secrets input.
- `${{ deployment }}`: References the deployment event that triggered this
action.#### Testing
You can run the action locally. Action input parameters can be passed as
environment variables with the `INPUT_` prefix.```bash
env 'INPUT_COMMAND="push"' 'INPUT_REPO-USERNAME="test"' yarn run run
```Tests are run as part of the actions CI pipeline and can be run locally using
[act](https://github.com/nektos/act):```bash
act --platform ubuntu-latest=lucasalt/act_base:latest
```"scripts": { "build": "tsc", "run": "yarn run package && node dist/index.js",
"run-tsnode": "ts-node src/main.ts", "run-tsx": "tsx src/main.ts", "format":
"prettier --write **/\*.ts", "format-check": "prettier --check **/\*.ts",
"package": "yarn run build && ncc build -m", "packageold": "yarn run build &&
ncc build --source-map --license licenses.txt", "test": "node --trace-warnings
node_modules/.bin/jest --detectOpenHandles --no-cache", "integration": "yarn run
build && node --trace-warnings node_modules/.bin/jest --no-cache", "all": "yarn
run build && yarn run format && yarn run package && yarn test" },