Skip to content

Instantly share code, notes, and snippets.

@princefishthrower
Created February 1, 2021 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save princefishthrower/c9c957877556f90afd61ddd812de1c29 to your computer and use it in GitHub Desktop.
Save princefishthrower/c9c957877556f90afd61ddd812de1c29 to your computer and use it in GitHub Desktop.
pipelines:
branches:
staging:
- step:
name: Copy Staging Environment (.env.staging.json) to .env.json
script:
- cp /src/env/.env.staging.json /src/env/.env.json
<<<rest of install, build, SCP, SSH scripts and commands>>>
master:
- step:
name: Copy Production Environment (.env.production.json) to .env.json
script:
- cp /src/env/.env.production.json /src/env/.env.json
<<<rest of install, build, SCP, SSH scripts and commands>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment