Created
July 1, 2021 11:01
-
-
Save SiegeSailor/04e9b4d78c5ed4c20823a714180eedeb to your computer and use it in GitHub Desktop.
Demonstrate how to use envsubst in CICD.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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