https://github.com/gbh-tech/werf-deployment-action
A GitHub Action that facilitates Werf-based deployments to AWS EKS clusters.
https://github.com/gbh-tech/werf-deployment-action
action deployment github taskfile werf
Last synced: 16 days ago
JSON representation
A GitHub Action that facilitates Werf-based deployments to AWS EKS clusters.
- Host: GitHub
- URL: https://github.com/gbh-tech/werf-deployment-action
- Owner: gbh-tech
- License: mit
- Created: 2024-04-23T14:48:10.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-11-24T15:24:09.000Z (4 months ago)
- Last Synced: 2025-11-28T03:38:17.887Z (4 months ago)
- Topics: action, deployment, github, taskfile, werf
- Language: Shell
- Homepage:
- Size: 152 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Werf (+ Taskfile) Deployment Action
## Content
- [Overview](#overview)
- [Usage](#usage)
- [Example usage](#example-usage)
## Overview
This GitHub Action facilitates Werf deployments, allowing you to run Werf commands with ease.
It provides options to configure Werf, AWS regions, run modes, and secrets for secure deployment.
## Usage
See [action.yml](action.yml).
``` yaml
- uses: actions/werf-deployment-action@v0.0.2
with:
# Target environment to pass to tasks and Werf commands
environment: 'stage'
# The Taskfile tasks (command separated) to run
# Puts the environment input as a CLI_ARG with '-- '
# Tasks are run previous to Werf commands
tasks: >-
ecr-login,
kubeconfig
# The Werf commands to run without werf and --env
# Werf commands are run after tasks
commands: >-
render --repo ,
plan --repo ,
converge --repo --values .helm/values-.yaml
# Specifies the AWS region name for configuration
aws_region: 'us-east-1'
# Optional. AWS service account access key
aws_access_key_id: ''
# Optional. Ansible vault password to decrypt secrets
werf_secret_key: ''
# Optional. AWS service account secret access key
aws_secret_access_key: ''
```
### Example usage
```yaml
- uses: gbh-tech/werf-deployment-action@v0.0.2
with:
environment: 'stage'
aws_region: 'us-east-1'
werf_secret_key: '${{ secrets.WERF_SECRET_KEY }}'
aws_access_key_id: '${{ vars.AWS_ACCESS_KEY_ID }}'
aws_secret_access_key: '${{ secrets.AWS_SECRET_ACCESS_KEY }}'
tasks: >-
ecr-login,
kubeconfig
commands: >-
render --repo 'id.aws.ecr/repo/myapp' --values '.helm/values-stage.yaml',
converge --repo 'id.aws.ecr/repo/myapp', --values '.helm/values-stage.yaml'
```