https://github.com/sitkoru/k8s-deployment-action
https://github.com/sitkoru/k8s-deployment-action
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/sitkoru/k8s-deployment-action
- Owner: sitkoru
- License: mit
- Created: 2024-06-25T04:14:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-03T13:01:17.000Z (about 2 years ago)
- Last Synced: 2025-10-26T13:59:32.111Z (10 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# k8s-deployment-action
Action to manage Kubernetes Deployments
# Usage
## Trigger
```yml
name: "Manual deploy"
on:
workflow_dispatch:
jobs:
deploy:
name: Deploy
runs-on: self-hosted
container: ghcr.io/sitkoru/actions-container
steps:
- name: Prepare
id: prep
shell: bash
run: |
VERSION=${GITHUB_REF#refs/tags/}
echo ::set-output name=version::${VERSION}
- uses: sitkoru/k8s-deployment-action@v1
name: Create GitHub deployment
with:
version: ${{ github.event.deployment.description }}
config: ${{ secrets.KUBE_CONFIG }}
common_env: ${{ secrets.COMMON_ENV }}
app_values_path: .helm/values.yml
app: ${{ secrets.APP_NAME }}
```