Skip to content

Instantly share code, notes, and snippets.

@SiegeSailor
Created July 1, 2021 11:01
Show Gist options
  • Save SiegeSailor/04e9b4d78c5ed4c20823a714180eedeb to your computer and use it in GitHub Desktop.
Save SiegeSailor/04e9b4d78c5ed4c20823a714180eedeb to your computer and use it in GitHub Desktop.
Demonstrate how to use envsubst in CICD.
image: node:13.10.1
stages:
- build
build:
before_script:
- apt-get update; apt-get install gettext-base git -y
script:
- mv .env .env.tmp; envsubst < .env.tmp > .env
- npm ci --allow-root
- npx patch-package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment