clevyr / yampl-action

GitHub Action to invoke yampl during CI/CD.

Home Page:https://github.com/clevyr/yampl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yampl-action

This action runs yampl to template values in a yaml file.

See the yampl readme for more details on yampl templating capabilities.

Usage

Inputs

Name Description Required Default
file Path to the file that should be patched. true
values List of values to replace in the provided file. true
commit_message If set, this action will invoke stefanzweifel/git-auto-commit-action with the given commit message. false ""
yampl_version The Yampl version to install. false latest

Outputs

None

Example Workflow

Here is an example that fetches a separate deployment repo and patches its configuration.

name: Patch Configuration

on: push

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - id: short-sha
        uses: benjlevesque/short-sha@v1.2

      - name: Bump version
        uses: clevyr/yampl-action@v1
        with:
          file: deployment.yaml
          values: |
            tag=${{ github.sha }}
          commit_message: ":arrow_up: Bump deployment to ${{ steps.short-sha.outputs.sha }}"