danielr1996 / envsubst-action

Github Action for envsubst

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Envsubst Action

This action allows you to substitute environment variables in a file.

Usage

template.json

{
  "version": "${VERSION}",
  "instance": "${INSTANCE}"
}

.github/workflows/pipeline.yaml

- uses: danielr1996/envsubst-action@1.0.0
  env:
      VERSION: 1.2.3
      INSTANCE: staging
  with:
    input: template.json
    output: deployment.json

deployment.json

{
  "version": "1.2.3",
  "instance": "staging"
}

About

Github Action for envsubst

License:MIT License


Languages

Language:Dockerfile 72.1%Language:Shell 27.9%